You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by lx...@apache.org on 2017/07/07 15:58:44 UTC

[31/50] [abbrv] incubator-mxnet-test git commit: add allow_extra parameter to module (#6903)

add allow_extra parameter to module (#6903)

* add allow_extra parameter to module

* pass allow_extra to _curr_module


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

Branch: refs/heads/master
Commit: b760eb18e6b7b9f9a7f04b615d33ef9851226a11
Parents: bdcb45f
Author: Jongju Shin <jj...@postech.ac.kr>
Authored: Sat Jul 1 13:30:35 2017 +0900
Committer: Eric Junyuan Xie <pi...@users.noreply.github.com>
Committed: Fri Jun 30 21:30:35 2017 -0700

----------------------------------------------------------------------
 example/rcnn/rcnn/core/module.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/blob/b760eb18/example/rcnn/rcnn/core/module.py
----------------------------------------------------------------------
diff --git a/example/rcnn/rcnn/core/module.py b/example/rcnn/rcnn/core/module.py
index c823cb9..bf28f8e 100644
--- a/example/rcnn/rcnn/core/module.py
+++ b/example/rcnn/rcnn/core/module.py
@@ -80,13 +80,13 @@ class MutableModule(BaseModule):
         return self._curr_module.get_params()
 
     def init_params(self, initializer=Uniform(0.01), arg_params=None, aux_params=None,
-                    allow_missing=False, force_init=False):
+                    allow_missing=False, force_init=False, allow_extra=False):
         if self.params_initialized and not force_init:
             return
         assert self.binded, 'call bind before initializing the parameters'
         self._curr_module.init_params(initializer=initializer, arg_params=arg_params,
                                       aux_params=aux_params, allow_missing=allow_missing,
-                                      force_init=force_init)
+                                      force_init=force_init, allow_extra=allow_extra)
         self.params_initialized = True
 
     def bind(self, data_shapes, label_shapes=None, for_training=True,