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 2021/12/08 13:37:38 UTC

[GitHub] [incubator-mxnet] MengboZ commented on pull request #15994: ONNX import/export: Upsampling

MengboZ commented on pull request #15994:
URL: https://github.com/apache/incubator-mxnet/pull/15994#issuecomment-988821579


   @vandanavk @anirudhacharya @kreid415 @jeremiedb @oeway Sorry to bother you again, I want to import ONNX model from MXnet, I changed my corresponding file according to Files changed, another error occurred after I changed:
   ```
   Traceback (most recent call last):
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/runpy.py", line 194, in _run_module_as_main
       return _run_code(code, main_globals, None,
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/runpy.py", line 87, in _run_code
       exec(code, run_globals)
     File "/home/amax/.vscode-server/extensions/ms-python.python-2021.11.1422169775/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
       cli.main()
     File "/home/amax/.vscode-server/extensions/ms-python.python-2021.11.1422169775/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
       run()
     File "/home/amax/.vscode-server/extensions/ms-python.python-2021.11.1422169775/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
       runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/runpy.py", line 265, in run_path
       return _run_module_code(code, init_globals, run_name,
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/runpy.py", line 97, in _run_module_code
       _run_code(code, mod_globals, init_globals,
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/runpy.py", line 87, in _run_code
       exec(code, run_globals)
     File "/home/amax/zmb/segnet_tvm/net_random/to_onnx.py", line 69, in <module>
       load_onnx_mxnet()
     File "/home/amax/zmb/segnet_tvm/net_random/to_onnx.py", line 62, in load_onnx_mxnet
       sym, arg = onnx_mxnet.import_model(onnx_path)
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_model.py", line 59, in import_model
       sym, arg_params, aux_params = graph.from_onnx(model_proto.graph)
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 115, in from_onnx
       mxnet_sym = self._convert_operator(node_name, op_name, onnx_attr, inputs)
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 61, in _convert_operator
       op_name, new_attrs, inputs = convert_map[op_name](attrs, inputs, self)
     File "/home/amax/anaconda3/envs/tvm-build/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/_op_translations.py", line 806, in upsampling
       scale = tuple(new_attrs.get('scale'))[2:]
   TypeError: 'NoneType' object is not iterable
   ```
   Since I'm new to these, I don't quite understand what the error is. By the way, can Upsample be imported into MXNET so far? Has this been achieved? Thank you and look forward to your reply.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org