dotelos opened a new issue #9872: A bug in an example in the python API document
   This is an example found in the doc for 
   class sigmoid(Function):
       def forward(self, x):
           y = 1 / (1 + mx.nd.exp(-x))
           return y
       def backward(self, dy):
           # 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)
   The `backward` method should return `dy * y * (1-y)` instead of `y * (1-y)` 
according to the chain rule.

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:

With regards,
Apache Git Services

Reply via email to