-
Notifications
You must be signed in to change notification settings - Fork 60
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
Err` value: IrError(OutputNodeNotFound("/linear/MatMul_output_0")) on linear model #191
Comments
is there any update on this? Can anyone help? I've tried it again, and still getting the same error |
@maxwellflitton the error indicates an output from an earlier node cannot be found in the ONNX file. Can you share your ONNX file? |
I have a similar issue. Here is the onnx file elections.zip (based on https://huggingface.github.io/candle/training/simplified.html) In my case, it's |
I did some debugging. The error is coming from here: Lines 24 to 26 in 7880ed8
The shapes are acquired here: Lines 198 to 208 in 7880ed8
But I am assuming our onnx files doesn't have definitions for them because they need to be inferred. Is that assumption correct? I don't know the onnx standard. |
The onnx file needs to be pre-processed to infer shapes and save them back in the file. |
@notdanilo I am facing the same issue getting SessionError(IrError(OutputNodeNotFound("onnx::Reshape_1988"))) with a model exported using pytorch 1.12 When I try to infer shapes and save them back to a file
Any ideas, why this is happening? |
Split shape inference isn't supported in nnx. Try this: pip install onnx-simplifier
python -m onnxsim <input.onnx> <output.onnx> |
Running into a similar issue with the Any pointers on where to get started if I wanted to send a PR? I know where this exists in the wonnx codebase, was just hoping there might be a reference that guided that implementation for the other ops |
Describe the bug
I've trained a simple linear model in pytorch. I then export it to ONNX. Calling from the ONNX library it works fine. However, when trying to call from
wonnx
I get the errorErr value: IrError(OutputNodeNotFound("/linear/MatMul_output_0"))
. Looking at the model in neuron everything seems to make sense and in my settings I define the output at the name of5
as this is the output, I don't know whywonnx
is erroring here whenonnx
works fine.To Reproduce
Train a simple linear model with the following code:
I then perform an onnx export with the following code:
I then load the model in rust with the following code:
and I get the error with the following line:
Expected behavior
Merely to run a simple inference
Screenshots
When inspecting the onnx file all the weights seem to match up or am I missing something here?
Desktop
The text was updated successfully, but these errors were encountered: