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 2020/02/29 15:03:54 UTC
[GitHub] [incubator-mxnet] Bumblebee269 opened a new issue #17729: ONNX
import does not work
Bumblebee269 opened a new issue #17729: ONNX import does not work
URL: https://github.com/apache/incubator-mxnet/issues/17729
## Description
Trying to open an onnx model, generates an error: load_model(...)
Looking into the code of mxnet/contrib/onnx/onnx2mx/import_model.py, it seems that instead of load_model(...), the method load(load) should be invoked.
### Error Message
Exception message generated on line 58 in import_model.py:
module 'onnx' has no attribute 'load_model'
## To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
```
import mxnet as mx
import mxnet.contrib.onnx as onnx_mxnet
import onnx
sym, arg, aux = onnx_mxnet.import_model("C:\\Users\\Fred\Downloads\\dummy_model.onnx")
mx.viz.plot_network(sym, node_attrs={"shape":"oval","fixedsize":"false"})
```
### Steps to reproduce
(Paste the commands you ran that produced the error.)
1.
2.
## What have you tried to solve it?
1.
2.
## Environment
Windows 10, 64-bit, VS2017, Anaconda-3 64 bit, mxnet 1.4.1
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services