Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] RuntimeError: /project/third_party/onnx-optimizer/third_party/onnx/onnx/common/ir.h:1372: eraseOutput: Assertion outputs_[i]->uses().empty() failed #341

Open
luchangli03 opened this issue Aug 13, 2024 · 0 comments

Comments

@luchangli03
Copy link

Describe the bug
A clear and concise description of what the bug is.
I use onnxsim-0.4.36 to simpily a model and get this error:

Traceback (most recent call last):
File "/root/miniconda3/envs/lite/bin/onnxsim", line 8, in
sys.exit(main())
File "/root/miniconda3/envs/lite/lib/python3.9/site-packages/onnxsim/onnx_simplifier.py", line 489, in main
model_opt, check_ok = simplify(
File "/root/miniconda3/envs/lite/lib/python3.9/site-packages/onnxsim/onnx_simplifier.py", line 199, in simplify
model_opt_bytes = C.simplify(
RuntimeError: /project/third_party/onnx-optimizer/third_party/onnx/onnx/common/ir.h:1372: eraseOutput: Assertion outputs_[i]->uses().empty() failed.

However, if I use onnxsim-0.4.31, I can successfully simplify the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant