Skip to content

[BUG] RuntimeError: required undefined attribute 'value' #350

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

Open
mgehre-amd opened this issue Jan 7, 2025 · 1 comment
Open

[BUG] RuntimeError: required undefined attribute 'value' #350

mgehre-amd opened this issue Jan 7, 2025 · 1 comment

Comments

@mgehre-amd
Copy link

mgehre-amd commented Jan 7, 2025

Describe the bug
Running onnxsim model.onnx out.onnx version 0.4.36 causes

Simplifying...
Traceback (most recent call last):
  File ".venv/bin/onnxsim", line 8, in <module>
    sys.exit(main())
  File ".venv/lib/python3.10/site-packages/onnxsim/onnx_simplifier.py", line 489, in main
    model_opt, check_ok = simplify(
  File ".venv/lib/python3.10/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:274: find: 
  Assertion `!required || it != values_.end()` failed:
  /project/third_party/onnx-optimizer/third_party/onnx/onnx/common/ir.h:278: find: required undefined attribute 'value'

Happens with both onnx 1.16.1 and onnx 1.17.0

Model
The test_mvn_expanded_ver18
from the onnx conformance suite.

@dkennett-ms
Copy link

I have to roll back to torch 2.4.1 to get this error to go away.

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

2 participants