Open zhenhuaw-me opened 2 years ago
I reproduced this issue when pass is lift_lexical_references
# PYTHONPATH=/root/optimizer/ onnxoptimizer conv.float32.onnx conv.float32_sim.onnx -p lift_lexical_references
Traceback (most recent call last):
File "/usr/bin/onnxoptimizer", line 33, in <module>
sys.exit(load_entry_point('onnxoptimizer', 'console_scripts', 'onnxoptimizer')())
File "/root/optimizer/onnxoptimizer/onnxoptimizer_main.py", line 77, in main
model = onnxoptimizer.optimize(model=model, passes=passes, fixed_point=args.fixed_point)
File "/root/optimizer/onnxoptimizer/__init__.py", line 50, in optimize
optimized_model_str = C.optimize(model_str, passes)
RuntimeError: Unresolved value references: Conv2D_bias,Variable/read,
Via
onnxcli
https://github.com/zhenhuaw-me/onnxcli/issues/28The model: https://github.com/zhenhuaw-me/onnxcli/blob/v0.2.0/assets/tests/conv.float32.onnx
Last pass version: v0.2.7
Log