gorgonia icon indicating copy to clipboard operation
gorgonia copied to clipboard

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

Open zannet opened this issue 1 year ago • 3 comments

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

zannet avatar Sep 30 '22 07:09 zannet

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 avatar Nov 13 '22 16:11 bh90210

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?

bh90210 avatar Nov 13 '22 20:11 bh90210

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.)

ybdxb avatar Jun 20 '23 09:06 ybdxb