Repository: incubator-singa
Updated Branches:
  refs/heads/master 392a9c394 -> 897f5d5cc


Fixed a bug reported by hacker99 from layer.py (SINGA-248)


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/897f5d5c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/897f5d5c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/897f5d5c

Branch: refs/heads/master
Commit: 897f5d5cc3cb0c67ffa2d61b5c151a3e26ca7f6e
Parents: 392a9c3
Author: xiezl <[email protected]>
Authored: Sat Sep 24 12:13:55 2016 +0800
Committer: xiezl <[email protected]>
Committed: Sat Sep 24 12:13:55 2016 +0800

----------------------------------------------------------------------
 python/singa/layer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/897f5d5c/python/singa/layer.py
----------------------------------------------------------------------
diff --git a/python/singa/layer.py b/python/singa/layer.py
index 51b46ea..8caf2bb 100644
--- a/python/singa/layer.py
+++ b/python/singa/layer.py
@@ -154,7 +154,7 @@ class Layer(object):
         if type(x) == list:
             xs = []
             for t in x:
-                x.append(t.singa_tensor)
+                xs.append(t.singa_tensor)
         else:
             assert isinstance(x, tensor.Tensor), \
                 'input must be a Tensor or a list of Tensor'

Reply via email to