You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
I'm attempting to use the onnx optimizer on the example ResNet50 network in Keras.
However despite the onnx checker succeeding on a model loaded by keras2onnx, the optimizer fails.
The error message I get fails somewhere in the C++ code running the onnx optimizer:
Traceback (most recent call last):
File "test_onnx_optimize.py", line 9, in <module>
optimized_model = onnx.optimizer.optimize(onnx_model)
File "venv/lib/python3.7/site-packages/onnx/optimizer.py", line 55, in optimize
optimized_model_str = C.optimize(model_str, passes)
IndexError: unordered_map::at: key not found
We have done ConvBatchNorm fusion in onnxconverter-common recently here. For ResNet50, it is already highly optimized now. Please try using keras2onnx and onnxconverter-common master.
Error
I'm attempting to use the onnx optimizer on the example ResNet50 network in Keras.
However despite the onnx checker succeeding on a model loaded by keras2onnx, the optimizer fails.
The error message I get fails somewhere in the C++ code running the onnx optimizer:
Steps to Reproduce
This code reproduces the issue:
The text was updated successfully, but these errors were encountered: