zleyk22 commented on issue #18078: A possible bug when computing a gradient 
vector
URL: 
https://github.com/apache/incubator-mxnet/issues/18078#issuecomment-614763343
 
 
   Xingjian,
   
   If it is a bug, then possibly somebody tries to fix it. Do you know such 
   a person? I would like to contact him/her.
   
   But if nobody is fixing this bug, then I volunteer to fix it. And as I 
   see it now it may not be an easy task.
   
   Zbigniew
   
   On 4/15/20 11:19 PM, Xingjian Shi wrote:
   >
   > @zleyk22 <https://github.com/zleyk22> Yes, it's a bug and also exists 
   > in numpy.
   >
   > import  mxnetas  mx
   > mx.npx.set_np()
   > a=  mx.np.array([1,0])
   > a.attach_grad()
   > with  mx.autograd.record():
   >      b=  mx.np.prod(a)
   >      b.backward()
   > print(a.grad)
   >
   > Output:
   >
   > |[ 0. nan] |
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub 
   > 
<https://github.com/apache/incubator-mxnet/issues/18078#issuecomment-614406630>,
 
   > or unsubscribe 
   > 
<https://github.com/notifications/unsubscribe-auth/AO3PCDZ7IXHMQE6L7BMYYDTRM2BMRANCNFSM4MJCT54Q>.
   >
   

----------------------------------------------------------------
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

Reply via email to