alicera edited a comment on issue #19808: URL: https://github.com/apache/incubator-mxnet/issues/19808#issuecomment-770646209
git clone --recursive https://github.com/apache/incubator-mxnet mxnet cd mxnet git checkout v1.x cp -r ./python/mxnet/contrib/onnx/mx2onnx/ /opt/mxnet/python/mxnet/contrib/onnx/ then I run the project to deal with onnx. https://chai-bapat.medium.com/5min-gluon-model-to-onnx-e8ed0eea754e [07:45:24] ../src/storage/storage.cc:199: Using Pooled (Naive) StorageManager for CPU resnest50 downloaded resnest50 hybridized resnest50 exported Traceback (most recent call last): File "pre.py", line 27, in <module> onnx_mxnet.export_model(sym, params, [input_shape], np.float32, onnx_file) File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/export_model.py", line 81, in export_model onnx_graph = converter.create_onnx_graph_proto(sym_obj, params_obj, input_shape, File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/export_onnx.py", line 257, in create_onnx_graph_proto converted = MXNetGraph.convert_layer( File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/export_onnx.py", line 88, in convert_layer return convert_func(node, **kwargs) File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py", line 1512, in convert_elementwise_add return create_basic_op_node('Add', node, kwargs) File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py", line 148, in create_basic_op_node name, input_nodes, _ = get_inputs(node, kwargs) File "/opt/mxnet/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py", line 140, in get_inputs input_node_name = outputs_lookup[ip[0]][ip[1]] IndexError: list index out of range ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
