You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/08 13:55:52 UTC

[GitHub] kuonangzhe opened a new issue #12486: gluon.nn.SymbolBlock.imports Error

kuonangzhe opened a new issue #12486: gluon.nn.SymbolBlock.imports Error
URL: https://github.com/apache/incubator-mxnet/issues/12486
 
 
   We use mxnet 1.3.0 on Ubuntu 16.04, python3.5, with model loading method SymbolBlock.imports. Then get error as follows:
   
   ```
   [20:52:20] src/nnvm/legacy_json_util.cc:209: Loading symbol saved by previous version v1.2.1. Attempting to upgrade...
   [20:52:20] src/nnvm/legacy_json_util.cc:217: Symbol successfully upgraded!
   Traceback (most recent call last):
     File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
       "__main__", mod_spec)
     File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
       exec(code, run_globals)
     File "/home/name/proj/demo.py", line 68, in <module>
       'param'])
     File "/home/name/proj/demo.py", line 22, in demo
       net_load = gluon.nn.SymbolBlock.imports(model_loc, ['data'], param_loc)
     File "/home/name/mxnet-1.3/python/mxnet/gluon/block.py", line 1023, in imports
       ret = SymbolBlock(sym, inputs)
     File "/home/name/mxnet-1.3/python/mxnet/gluon/block.py", line 1051, in __init__
       for j in i.get_internals():
     File "/home/name/mxnet-1.3/python/mxnet/symbol/symbol.py", line 93, in <genexpr>
       return (self[i] for i in self.list_outputs())
     File "/home/name/mxnet-1.3/python/mxnet/symbol/symbol.py", line 517, in __getitem__
       raise ValueError('There are multiple outputs with name \"%s\"' % index)
   ValueError: There are multiple outputs with name "resmodel0_relu0_fwd_output"
   ```
   
   While we tried with mxnet 1.2.1 and the program ran well. There might be some problems in the function but we are not sure. Are there any suggestions?
   
   

----------------------------------------------------------------
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