zleyk22 commented on issue #17864: An incorrect result generated by exec.backward URL: https://github.com/apache/incubator-mxnet/issues/17864#issuecomment-613089971 I investigated the MXNet C++ code and noticed that the gradient of the input array [[x, y]] is computed as [[(x*y)/x, (x*y)/y]]. Therefore, if y is zero, then we always get nan as the second element of the array. Is it a bug, or is it done on purpose? If the latter is true, how can I avoid it?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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
