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:
[email protected]