Repository: incubator-singa
Updated Branches:
  refs/heads/master 4a1b1e2b6 -> e29ef5ff8


SINGA-408 Unsupportive function definition in python3

Correct the unsupportive function definition in line 1190 of 
"python/singa/autograd.py".


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

Branch: refs/heads/master
Commit: 90256fcb13d4755bbd6354c9746bee45521b3602
Parents: f720a8f
Author: xuewanqi <[email protected]>
Authored: Tue Nov 20 02:57:25 2018 +0000
Committer: xuewanqi <[email protected]>
Committed: Tue Nov 20 03:06:40 2018 +0000

----------------------------------------------------------------------
 python/singa/autograd.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/90256fcb/python/singa/autograd.py
----------------------------------------------------------------------
diff --git a/python/singa/autograd.py b/python/singa/autograd.py
index e1557ca..e133c82 100755
--- a/python/singa/autograd.py
+++ b/python/singa/autograd.py
@@ -1187,8 +1187,10 @@ class LSTM(RNN_Base):
 
         self.params = self.Wx + self.Wh + self.Bx + self.Bh
 
-    def __call__(self, xs, (h0, c0)):
+    def __call__(self, xs, h0_c0):
         # xs: a tuple or list of input tensors
+        # h0_c0: a tuple of (h0, c0)
+        h0, c0 = h0_c0
         if not isinstance(xs, list):
             xs = list(xs)
         inputs = xs + list((h0, c0))

Reply via email to