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 5d49205 Fix doc (#9889)
5d49205 is described below
commit 5d49205d8fa84877a758a04c8e2d41e33a64e9da
Author: Xingjian Shi <[email protected]>
AuthorDate: Mon Feb 26 14:43:29 2018 -0800
Fix doc (#9889)
---
python/mxnet/autograd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/mxnet/autograd.py b/python/mxnet/autograd.py
index 2eb0473..608733d 100644
--- a/python/mxnet/autograd.py
+++ b/python/mxnet/autograd.py
@@ -382,7 +382,7 @@ class Function(object):
# backward takes as many inputs as forward's return value,
# and returns as many NDArrays as forward's arguments.
y, = self.saved_tensors
- return y * (1-y)
+ return dy * y * (1-y)
Then, the function can be used in the following way::
--
To stop receiving notification emails like this one, please contact
[email protected].