wangwei created SINGA-283:
-----------------------------

             Summary: Fix a bug of net.py backward function for layers with 
multiple inputs
                 Key: SINGA-283
                 URL: https://issues.apache.org/jira/browse/SINGA-283
             Project: Singa
          Issue Type: Bug
            Reporter: wangwei


For layers with multiple inputs, their source layers are visited in the 
reversed order, e.g., s1, s2, s3 -> o (forward),  => o, s3, s2, s1 (backward). 
Consequently, we need to reverse the order of the output gradients of o.
There is a bug of the reverse operation.
It could be fixed by: reverse(list) --> list[::-1], the first one returns a 
reverselistiterator instead of a list.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to