-
-
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
Installation error #75
Comments
Hello, Can you provides the go.mod and eventually the Dockerfile to be able to reproduce the error ? Thanks in advance. |
I reproduced this without a go.mod, so the instructions are:
You should see similar results |
package main
import (
"fmt"
"github.com/owulveryck/onnx-go/backend/x/gorgonnx"
)
func main() {
backend := gorgonnx.NewGraph()
}
|
Ok, I could reproduce the bug. I will investigate. |
Thank you. Maybe adding a go.{mod,sum} to your package and locking the package versions that it depends can prevent this from happening in the future. |
TL;DR: good idea, but this may be too early. Longer: By now we (try to) make onnx-go compatible with the master branches of the dependencies (this is what the CI checks uppon a push on the repo). The project is in active development, and some features require to add/patch things in the significant dependencies such as Gorgonia and Tensor lib (take the very recent example of the WDYT? Oh, and one more thing: I've seen this good talk from @jadekler, and I must say that it has scared me enough to stay away from the go modules, for now, and keep the focus on the features and performances of the library. |
LGTM I'll stay away from go modules for now then. The main reason I would like to use this library with go mod is to get rid of the tensorflow shared object dependency in production. Anyway, thanks for your help :) |
I don't get your point? This repo is independent of Tensorflow, and if you compile a binary, you can bring it to production without carrying about dependencies at runtime. Tell me if I missed something?
Thank you @blackrez for the investigation, you rock! I let you close the issue whenever you want if you think that this is not fixable by now (or keep it open if you plan to fix it ;)). |
Hello!
Note that although multi-module repositories (the topic of the video, and an "advanced" setup) is tricky, single-module repositories (the normal, mainstream case) should be quite straightforward and easy to maintain. Essentially, all that needs to be done is:
And then during every PR, you use Happy to provide additional guidance if you'd like to discuss any part of adopting Go modules! :) |
I was looking for a solution (thanks @jadekler for pointing this idea). I will close this issue and create a new issue on support go modules. |
When trying to install this package in a go modules enabled project(golang:latest image) I got the following error:
The text was updated successfully, but these errors were encountered: