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

Node () has input size 5 not in range [min=1, max=1]. #30

Open
erdongchendou opened this issue Aug 1, 2020 · 1 comment
Open

Node () has input size 5 not in range [min=1, max=1]. #30

erdongchendou opened this issue Aug 1, 2020 · 1 comment

Comments

@erdongchendou
Copy link

When I ran 'python3 main.py', I got this error. Do you have any idea what is wrong?

  File "main.py", line 369, in <module>
    simplify_onnx(onnx_path)
  File "main.py", line 154, in simplify_onnx
    model_simp, check = simplify(model)
  File "/home/nvidia/.local/lib/python3.6/site-packages/onnxsim/onnx_simplifier.py", line 300, in simplify
    onnx.checker.check_model(model)
  File "/home/nvidia/.local/lib/python3.6/site-packages/onnx/checker.py", line 86, in check_model
    C.check_model(model.SerializeToString())
onnx.onnx_cpp2py_export.checker.ValidationError: Node () has input size 5 not in range [min=1, max=1].

==> Context: Bad node spec: input: "data" input: "372" input: "373" input: "371" input: "374" output: "375" op_type: "Slice"```
@TrojanXu
Copy link
Owner

TrojanXu commented Oct 4, 2020

How about the versions of your python packages? I haven't run into this issue before.

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