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/08/20 09:02:20 UTC
[GitHub] [incubator-mxnet] wangzbo opened a new issue #18970: Unsuported operator when importing an ONNX model
wangzbo opened a new issue #18970:
URL: https://github.com/apache/incubator-mxnet/issues/18970
## Description
Hello,
I am using mxnet to import a onnx model exported by pytorch and it failed with the error message below. Is there any plan to support the ConstantOfShape operator? Does mxnet support to import a pytorch model with dynamic input/output shapes? Thanks.
python: 3.7.6
pytorch: 1.6.0
opset_version: 11
mxnet: 1.6.0
OS: macOS mojave
### Error Message
> sym, arg, aux = mxnet.contrib.onnx.import_model("nl2sql.onnx")
> File "/usr/local/lib/python3.7/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 "/usr/local/lib/python3.7/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 116, in from_onnx
> mxnet_sym = self._convert_operator(node_name, op_name, onnx_attr, inputs)
> File "/usr/local/lib/python3.7/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 64, in _convert_operator
> raise NotImplementedError("Operator {} not implemented.".format(op_name))
> NotImplementedError: Operator ConstantOfShape not implemented.
## To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
### Steps to reproduce
(Paste the commands you ran that produced the error.)
1.
2.
## What have you tried to solve it?
1.
2.
## Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
```
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python
# paste outputs here
```
----------------------------------------------------------------
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
[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #18970: Unsuported operator when importing an ONNX model
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18970:
URL: https://github.com/apache/incubator-mxnet/issues/18970#issuecomment-677473792
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).
----------------------------------------------------------------
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