mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] RedShift51 commented on issue #1356: override global initialization method in layer configuration
Date Thu, 01 Jan 1970 00:00:00 GMT
RedShift51 commented on issue #1356: override global initialization method in layer configuration
URL: https://github.com/apache/incubator-mxnet/issues/1356#issuecomment-362287843
 
 
   Good afternoon everyone, 
   i'm trying to use mx.iter.Load('parameters...', mx.init.Normal(),True) to load some weights
   from file and to initialize othr weights normally, 
   but i get error : 
   AssertionError: initializer must be of string type.
   I have log:
   Traceback (most recent call last):
     File "/home/alex/Desktop/MySegment/executor.py", line 283, in <module>
       preds = [model(X) for X in dlist]
     File "/home/alex/anaconda3/envs/py27/lib/python2.7/site-packages/mxnet/gluon/block.py",
line 304, in __call__
       return self.forward(*args)
     File "/home/alex/anaconda3/envs/py27/lib/python2.7/site-packages/mxnet/gluon/block.py",
line 607, in forward
       self._finish_deferred_init(True, x, *args)
     File "/home/alex/anaconda3/envs/py27/lib/python2.7/site-packages/mxnet/gluon/block.py",
line 407, in _finish_deferred_init
       i._finish_deferred_init()
     File "/home/alex/anaconda3/envs/py27/lib/python2.7/site-packages/mxnet/gluon/parameter.py",
line 239, in _finish_deferred_init
       initializer.create(default_init)(
     File "/home/alex/anaconda3/envs/py27/lib/python2.7/site-packages/mxnet/registry.py",
line 131, in create
       assert isinstance(name, string_types), "%s must be of string type"%nickname
   AssertionError: initializer must be of string type
   
   Process finished with exit code 1.
   
   In gluon block.py module it raises Deferred Initialization Error, why does it defer initialization?

   I used Normal initializer and it initialized all variables, but Load initializer doesn't
work. 
   How can I solve the problem? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message