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/05/24 15:45:19 UTC

[GitHub] HyperGroups opened a new issue #10998: Question: problem with import model generated by Wolfram Mathematica?

HyperGroups opened a new issue #10998: Question: problem with import model generated by Wolfram Mathematica?
URL: https://github.com/apache/incubator-mxnet/issues/10998
 
 
   When I'm using load_checkpoint()
   I found the code in model.py is
     ```
   symbol = sym.load('%s-symbol.json' % prefix)
       save_dict = nd.load('%s-%04d.params' % (prefix, epoch))
       arg_params = {}
       aux_params = {}
       for k, v in save_dict.items():
        tp,name = k.split(':', 1)
               if tp == 'arg':
                   arg_params[name] = v
               if tp == 'aux':
                   aux_params[name] = v
   ```
   
   the problem is in my arguments, there is no {{{___colon : ____]}}
   
   so the error info is
   ```
   [02:17:25] src/nnvm/legacy_json_util.cc:190: Loading symbol saved by previous version v1.0.1. Attempting to upgrade...
   [02:17:25] src/nnvm/legacy_json_util.cc:198: Symbol successfully upgraded!
   Traceback (most recent call last):
     File "/home/hypergroups/nutstore/ProjectsOnline/My/Python/MXNet/1.0/script/test_rgb.py", line 25, in <module>
       sym,arg_params, aux_params = mx.model.load_checkpoint(model_prefix,0)
     File "/home/hypergroups/anaconda2/lib/python2.7/site-packages/mxnet/model.py", line 425, in load_checkpoint
       tp, name = k.split(':', 1)
   ValueError: need more than 1 value to unpack
   ```
   
   mxnet.__version__ is 1.1.0
   

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