gorgonia
gorgonia copied to clipboard
Unable to import gorgonia.org/gorgonia/examples/mnist
go: module gorgonia.org/gorgonia@upgrade found (v0.9.17), but does not contain package gorgonia.org/gorgonia/examples/mnist
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.
just to add some more context, in particular after this addition https://github.com/gorgonia/gorgonia/commit/bc72cf782765090e64fc334d2fa23820f6ebe8b6#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?
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.)