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

error on model with sequence types/layers #134

Open
bas-aarts opened this issue May 3, 2023 · 0 comments
Open

error on model with sequence types/layers #134

bas-aarts opened this issue May 3, 2023 · 0 comments

Comments

@bas-aarts
Copy link

bas-aarts commented May 3, 2023

when running
python -m onnxoptimizer input.onnx out
on the attached .onnx file. I get

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.8.16/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/homebrew/Cellar/[email protected]/3.8.16/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/bas/src/tetra/tetra-dev/lib/python3.8/site-packages/onnxoptimizer/__main__.py", line 15, in <module>
    main()
[input.onnx.zip](https://github.com/onnx/optimizer/files/11379347/input.onnx.zip)

  File "/Users/bas/src/tetra/tetra-dev/lib/python3.8/site-packages/onnxoptimizer/onnxoptimizer_main.py", line 84, in main
    onnx.checker.check_model(output_file)
  File "/Users/bas/src/tetra/tetra-dev/lib/python3.8/site-packages/onnx/checker.py", line 108, in check_model
    C.check_model_path(model, full_check)
onnx.onnx_cpp2py_export.checker.ValidationError: Field 'type' of 'value_info' is required but missing.

this is with
onnxoptimizer==0.3.13
onnx==1.13.1

this happens on all models with a SequenceConstruct layer

input.onnx.zip

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