You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by sx...@apache.org on 2017/10/09 12:31:37 UTC

[incubator-mxnet] branch master updated: shared module bug fix (#8185)

This is an automated email from the ASF dual-hosted git repository.

sxjscience pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new fbfff66  shared module bug fix (#8185)
fbfff66 is described below

commit fbfff666ed105fc22f9b2a2b8420db5dd78571f6
Author: formath <ji...@163.com>
AuthorDate: Mon Oct 9 07:31:33 2017 -0500

    shared module bug fix (#8185)
---
 python/mxnet/module/module.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/mxnet/module/module.py b/python/mxnet/module/module.py
index d55b211..4c20a6f 100644
--- a/python/mxnet/module/module.py
+++ b/python/mxnet/module/module.py
@@ -403,7 +403,7 @@ class Module(BaseModule):
             assert isinstance(shared_module, Module) and \
                     shared_module.binded and shared_module.params_initialized
             shared_group = shared_module._exec_group
-            assert len(shared_group.execs) == len(self._context)
+            assert len(shared_group.execs) >= len(self._context)
         else:
             shared_group = None
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].