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

nn.ClassNLLCriterion() requires nn.LogSoftMax, rather than nn.SoftMax #15

Closed
rolfe opened this issue Aug 28, 2012 · 1 comment
Closed

Comments

@rolfe
Copy link

rolfe commented Aug 28, 2012

The tutorial adds a softmax to prepare the network output for input into a ClassNLLCriterion. However, ClassNLLCriterion expects that the log of the probability outputs is already taken.

@rolfe
Copy link
Author

rolfe commented Aug 28, 2012

Never mind. Somehow refreshing the page changed the code and made it correct. Either that or I'm going nuts.

@rolfe rolfe closed this as completed Aug 28, 2012
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