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

Error running #5

Open
i0x71 opened this issue Jun 6, 2020 · 0 comments
Open

Error running #5

i0x71 opened this issue Jun 6, 2020 · 0 comments

Comments

@i0x71
Copy link

i0x71 commented Jun 6, 2020

Hi,
Great write up!
I am getting an error right after checkout and go build running go version go1.14.2 linux/amd66
Any idea how i can fix this ?

Thanks

./gonn -file nums/1.png

panic: mat: zero length in matrix dimension

goroutine 1 [running]:
gonum.org/v1/gonum/mat.NewDense(...)
/root/goEnv/src/gonum.org/v1/gonum/mat/dense.go:50
main.dot(0x571fc0, 0xc000072040, 0x571fc0, 0xc000072200, 0x1c, 0x1c)
/root/goEnv/neural_network/gonn/mlp.go:95 +0x21a
main.Network.Predict(0x310, 0xc8, 0xa, 0xc000072040, 0xc000072080, 0x3fb999999999999a, 0xc0002be000, 0x310, 0x310, 0xc000040510, ...)
/root/goEnv/neural_network/gonn/mlp.go:67 +0xd8
main.predictFromImage(0x310, 0xc8, 0xa, 0xc000072040, 0xc000072080, 0x3fb999999999999a, 0x7fff4e778edc, 0xa, 0xc000072080)
/root/goEnv/neural_network/gonn/mlp.go:211 +0x96
main.main()
/root/goEnv/neural_network/gonn/main.go:49 +0x236

Also running ./gonn -mnist train produces an error also
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
main.mnistTrain(0xc000062f48)
/root/goEnv/neural_network/gonn/main.go:69 +0x7e3
main.main()
/root/goEnv/neural_network/gonn/main.go:33 +0x2cd

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

1 participant