jasonyu1996 commented on issue #12430: [MXNET-882] Support for N-d arrays added 
to diag op.
URL: https://github.com/apache/incubator-mxnet/pull/12430#issuecomment-419607153
 
 
   @samskalicky Thanks! As what the diag operator does is basically copying 
some elements from the input directly to output, the backward process is quite 
straightforward. What it does is simply copying the gradients from the output 
back to the corresponding elements of the input. This is achieved with a 
template parameter indicating whether it is forward or backward to control the 
direction of the assignment in the copy process.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to