Repository: incubator-singa
Updated Branches:
  refs/heads/master 07ef01f71 -> 12db1be01


fix a bug in test_net.py due to the update of backward() API


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

Branch: refs/heads/master
Commit: f0ebf1eb3599e12365d645d26b16ac822d4ce2dd
Parents: 62f5e18
Author: Wang Wei <[email protected]>
Authored: Thu Jun 15 01:10:51 2017 +0800
Committer: Wang Wei <[email protected]>
Committed: Thu Jun 15 01:10:51 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/f0ebf1eb/test/python/test_net.py
----------------------------------------------------------------------
diff --git a/test/python/test_net.py b/test/python/test_net.py
index aad9b12..b19d868 100644
--- a/test/python/test_net.py
+++ b/test/python/test_net.py
@@ -105,7 +105,7 @@ class TestFeedForwardNet(unittest.TestCase):
         o = ffn.forward(True, x)
         ffn.loss.forward(True, o, y)
         g = ffn.loss.backward()
-        for pname, pvalue, pgrad in ffn.backward(g):
+        for pname, pvalue, pgrad, _ in ffn.backward(g):
             self.assertEqual(len(pvalue), len(pgrad))
             for p, g in zip(pvalue, pgrad):
                 self.assertEqual(p.size(), g.size())

Reply via email to