-
Notifications
You must be signed in to change notification settings - Fork 254
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
InexactError when training "LeNet" on 1d image data #190
Comments
The line of code reporting It is trying to assign a value to the mask, which is unsigned. If you try to assign an invalid value (e.g. a negative value), an println((maxh-1) * width + maxw-1) right before that line to see what value we got that caused the error? |
@pluskid you are right, I got -180, where |
It seems like some pooling region is empty. Just as a sanity check, can you change the kernel for the pooling layer from |
Thank you for the reply.
|
@cinvro That is due to previously saved snapshots. Can you remove the saved snapshot files and re-try again? Thanks! |
@pluskid oh, I didn't realize that. |
@cinvro I checked the code and did not find the bug. It seems the pooling loop is not executed (otherwise |
@pluskid I got |
However, I can print out |
I can reproduce this error when I do not set the neuron property on the convolutional layer. It took me a while to narrow it down, but once I set I see that the code posted here also doesn't have a neuron defined on the convolutional layer, so I suspect the same is the case here. |
I am new to Mocha, and I am trying to modify the LeNet tutorial for my 1d image dataset, basically what I do is to slightly change the kernel size, and stride size as follows:
After the network is constructed, I get following error message:
Any idea why this happens?
My net looks like this:
The text was updated successfully, but these errors were encountered: