You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2018/08/14 01:48:40 UTC
[incubator-mxnet] branch master updated: set bind flag after bind
completes (#12155)
This is an automated email from the ASF dual-hosted git repository.
zhasheng 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 92edca8 set bind flag after bind completes (#12155)
92edca8 is described below
commit 92edca81ead16913f3ba3816d951d5f5497084f7
Author: Alexander Zai <az...@gmail.com>
AuthorDate: Mon Aug 13 21:48:28 2018 -0400
set bind flag after bind completes (#12155)
---
python/mxnet/module/module.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/python/mxnet/module/module.py b/python/mxnet/module/module.py
index 4d77e0e..a7d3336 100644
--- a/python/mxnet/module/module.py
+++ b/python/mxnet/module/module.py
@@ -398,7 +398,6 @@ class Module(BaseModule):
self.for_training = for_training
self.inputs_need_grad = inputs_need_grad
- self.binded = True
self._grad_req = grad_req
if not for_training:
@@ -454,6 +453,8 @@ class Module(BaseModule):
if shared_module is not None and shared_module.optimizer_initialized:
self.borrow_optimizer(shared_module)
+ self.binded = True
+
def reshape(self, data_shapes, label_shapes=None):
"""Reshapes the module for new input shapes.