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

Unable to generate an ONNX that works in ONNXRuntime #4

Open
edmosRovi opened this issue Mar 22, 2023 · 5 comments
Open

Unable to generate an ONNX that works in ONNXRuntime #4

edmosRovi opened this issue Mar 22, 2023 · 5 comments

Comments

@edmosRovi
Copy link

Hi,

I tried to generate the ONNX model as in #3 but when using it with ONNXRuntime I can't get it to work, because I get this failure:

"Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from model.onnx failed:Node (/Squeeze) Op (Squeeze) [ShapeInferenceError] Dimension of input 1 must be 1 instead of 2"

Any idea what is going on?

Thanks.

@wangwei-630
Copy link

hello, did you solve this problem?

@edmosRovi
Copy link
Author

Hello. No, not yet resolved.

@zhenyi1998
Copy link

Anyone managed to solve this issue? Really need to speed up the spiga using onxx :(

@naonao-beibei
Copy link

Hello. No, not yet resolved.

Please,Now are you solved?

@Mohammadakhavan75
Copy link

Hello,

I've been having trouble converting this model to ONNX, but I think I've narrowed down the problem to line 189 of the spiga/model/spiga.py file. In this line, the tensor is reshaped, which causes problems during the conversion to ONNX. This is because ONNX needs to know the exact shape of each variable (tensor) in order to create a graph. The reshape operation prevents ONNX from knowing the exact shape of the tensor, which causes the conversion to fail.

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

5 participants