apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.77k stars 6.79k forks source link

when export slowfast_4x16 from glouncv, I get err:No conversion function registered for op type slice yet. #19527

Open h030162 opened 3 years ago

h030162 commented 3 years ago

Traceback (most recent call last): File "slowfast_export.py", line 273, in converted_model_path = onnx_mxnet.export_model(sym, params, [input_shape], np.float32, onnx_file, verbose = True) File "/usr/local/lib/python3.6/site-packages/mxnet/contrib/onnx/mx2onnx/export_model.py", line 79, in export_model verbose=verbose) File "/usr/local/lib/python3.6/site-packages/mxnet/contrib/onnx/mx2onnx/export_onnx.py", line 249, in create_onnx_graph_proto idx=idx File "/usr/local/lib/python3.6/site-packages/mxnet/contrib/onnx/mx2onnx/export_onnx.py", line 86, in convert_layer raise AttributeError("No conversion function registered for op type %s yet." % op) AttributeError: No conversion function registered for op type slice yet.

github-actions[bot] commented 3 years ago

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 and our development guides wiki.

szha commented 3 years ago

I think this is a feature request for supporting slice operator for ONNX export. cc @josephevans

josephevans commented 3 years ago

Hi @h030162, this is actually fixed in the v1.x branch.

Zha0q1 commented 3 years ago

Hi @h030162 We have recently enabled support for this model. Are you still working on this? Thanks