onnx-simplifier
onnx-simplifier copied to clipboard
[BUG] RuntimeError: /project/third_party/onnx-optimizer/third_party/onnx/onnx/common/ir.h:1372: eraseOutput: Assertion `outputs_[i]->uses().empty()` failed
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 outputs_[i]->uses().empty()
failed.
However, if I use onnxsim-0.4.31, I can successfully simplify the model.