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 import gorgonia.org/gorgonia/examples/mnist #535

Open
zannet opened this issue Sep 30, 2022 · 3 comments
Open

Unable to import gorgonia.org/gorgonia/examples/mnist #535

zannet opened this issue Sep 30, 2022 · 3 comments

Comments

@zannet
Copy link

zannet commented Sep 30, 2022

go: module gorgonia.org/gorgonia@upgrade found (v0.9.17), but does not contain package gorgonia.org/gorgonia/examples/mnist

@bh90210
Copy link

bh90210 commented Nov 13, 2022

You need to run the command from inside the example directrory /gorgonia/examples/convnet$ go run . -epochs 1 2 and it will work.
Reason being inside the example there is another go.mod.

I had the same problem and for me the solution was to open /gorgonia/examples/convnet with a new vscode instance.

@bh90210
Copy link

bh90210 commented Nov 13, 2022

just to add some more context, in particular after this addition bc72cf7#diff-20fabdc98fb65350ab9b5e5be6d09b920f1f48bb44b1c81084459958f8c7f762 the import of gorgonia.org/gorgonia/examples/mnist broke. Removing the go.mod seems to fix the issue but there might be a good reason why those mods (one for each example) are there?

@ybdxb
Copy link

ybdxb commented Jun 20, 2023

Can you please clarify on how we can fix this issue :
go: finding module for package gorgonia.org/gorgonia/examples/mnist
practice/practice imports
gorgonia.org/gorgonia/examples/mnist: module gorgonia.org/gorgonia@latest found (v0.9.17), but does not contain package gorgonia.org/gorgonia/examples/mnist

How do I run the command from inside that you stated, and how do i run another code in VSC as stated by you :
(I had the same problem and for me the solution was to open /gorgonia/examples/convnet with a new vscode instance.)

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

3 participants