singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] chrishkchris commented on a change in pull request #493: SINGA-473 Autograd Trigonometry: Backward Test
Date Wed, 31 Jul 2019 01:25:58 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message