chrishkchris commented on a change in pull request #493: SINGA-473 Autograd 
Trigonometry: Backward Test
URL: https://github.com/apache/incubator-singa/pull/493#discussion_r309006617
 
 

 ##########
 File path: test/python/test_operation.py
 ##########
 @@ -65,6 +65,17 @@ def prepare_inputs_targets_for_rnn_test():
     targets = [t0, t1, t2]
     return inputs, targets, h0
 
+def numpy_unary_ops_backward(func, x, dy, h=0.0005):
 
 Review comment:
   OK, I will change the code using one of your two methods (the link provided 
or compute the gradient explicitly).
   
   The code I did was only the diagonal of the gradient matrix, which is only 
suitable for unary operator where one output is determined by one input, 
without the coupling from other inputs.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to