ariwaranosai opened a new pull request #10683: update doc for grad in 
autograd.py
URL: https://github.com/apache/incubator-mxnet/pull/10683
 
 
   update doc for grad in autograd.py
   
   ## Description ##
   example for grad in 
[autograd](https://mxnet.incubator.apache.org/api/python/autograd/autograd.html)
 is incorrect, since `dx` is already grad and list in 
   
   ```python
   x = mx.nd.ones((1,))
   x.attach_grad()
   with autograd.record():
       z = mx.nd.elemwise_add(mx.nd.exp(x), x)
   dx = autograd.grad(z, [x], create_graph=True)
   print(dx)
   ```
   
   ## Checklist ##
   ### Essentials ###
   Please feel free to remove inapplicable items for your PR.
   - [ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to 
the relevant [JIRA issue](https://issues.apache.org/jira/projects/MXNET/issues) 
created (except PRs with tiny changes)
   - [ ] Changes are complete (i.e. I finished coding on this PR)
   - [ ] All changes have test coverage:
   - Unit tests are added for small changes to verify correctness (e.g. adding 
a new operator)
   - Nightly tests are added for complicated/long-running ones (e.g. changing 
distributed kvstore)
   - Build tests will be added for build configuration changes (e.g. adding a 
new build option with NCCL)
   - [ ] Code is well-documented: 
   - [ ] To the my best knowledge, examples are either not affected by this 
change, or have been fixed to be compatible with this change
   
   ### Changes ###
   
   just for doc.
   
   ## Comments ##
   

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