-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
IR used by onnx-go is several version behind onnx #175
Comments
Thank you for raising this issue and for the investigation you've made so far. First, a bit of context: I started onnx-go a couple of months ago with the idea that we (Gophers) needed a simple way to handle a pre-trained neural net model within the Go ecosystem (and mainly in Gorgonia). That said, I fully agree with you: Now about your problem (because I'd like you to be able to use the package :D): WDYT? Can you try that and see if it works in your case? |
I fully understand the constraints you are facing in getting mainstream adoption of this package, and I want to thank you for getting this started. Hopefully we will see more contributions going forward. My primary goal is to be able to run model predictions on Onnx models using Go, and the two main blockers to using onnx-go is this version compatibility issue and the lack of support for Onnx-ML operators (see #174). I'm able to workaround the onnx-go limitations by using Microsofts About the issue at hand, your suggestion is exactly how I got the model import working - compiled the latest version of |
The current version of IR supported by onnx-go is
3
, as defined here:https://github.com/owulveryck/onnx-go/blob/master/internal/onnx/ir/onnx.proto3.pb.go#L50
But onnx is at version
6
, as defined here:https://github.com/onnx/onnx/blob/master/onnx/onnx.proto#L93
This is causing an issue when trying to import a model saved using
sklearn
Python module. I get the error:Unknown input type: UNDEFINED
Changing the opset to make it backward compatible, as explained here does not seem to help:
https://github.com/onnx/onnx/blob/master/docs/Versioning.md#released-versions
Are there any plans to upgrade the IR version supported by onnx-go?
The text was updated successfully, but these errors were encountered: