-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
hello, did you solve this problem? |
Hello. No, not yet resolved. |
Anyone managed to solve this issue? Really need to speed up the spiga using onxx :( |
Please,Now are you solved? |
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. |
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.
The text was updated successfully, but these errors were encountered: