This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c601b0  update doc for grad in autograd.py (#10683)
9c601b0 is described below

commit 9c601b0c7f58446aad891083518fda2062a8d4bc
Author: 在原佐为 <[email protected]>
AuthorDate: Thu Apr 26 02:29:31 2018 +0800

    update doc for grad in autograd.py (#10683)
    
    update doc for grad in autograd.py
---
 python/mxnet/autograd.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/python/mxnet/autograd.py b/python/mxnet/autograd.py
index c0f9a1b..e5ddaf6 100644
--- a/python/mxnet/autograd.py
+++ b/python/mxnet/autograd.py
@@ -305,8 +305,7 @@ def grad(heads, variables, head_grads=None, 
retain_graph=None, create_graph=Fals
     >>> with mx.autograd.record():
     ...     z = mx.nd.elemwise_add(mx.nd.exp(x), x)
     >>> dx = mx.autograd.grad(z, [x], create_graph=True)
-    >>> dx.backward()
-    >>> print(dx.grad)
+    >>> print(dx)
     [
     [ 3.71828175]
     <NDArray 1 @cpu(0)>]

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to