You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "wangwei (JIRA)" <ji...@apache.org> on 2016/12/16 07:51:59 UTC
[jira] [Created] (SINGA-283) Fix a bug of net.py backward function
for layers with multiple inputs
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)