[ 
https://issues.apache.org/jira/browse/SINGA-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15754450#comment-15754450
 ] 

ASF subversion and git services commented on SINGA-283:
-------------------------------------------------------

Commit 7956019cf326c5f84401551f31f1e597fba77d46 in incubator-singa's branch 
refs/heads/master from [~wangwei.cs]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=7956019 ]

SINGA-283 Fix a bug of net.py backward function for layers with multiple inputs

1. reversed(list) returns a reversedlistiterator, it should return a list. 
fixed by using list[::-1]
2. add debugging output for backward function


> 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
>            Assignee: 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