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

duplicated softmax functions are called in a single model #2

Open
shengyehchen opened this issue Nov 17, 2017 · 0 comments
Open

duplicated softmax functions are called in a single model #2

shengyehchen opened this issue Nov 17, 2017 · 0 comments

Comments

@shengyehchen
Copy link

torch.nn.CrossEntropyLoss() combines LogSoftMax and NLLLoss in one single class.
Thus, there should be only "return out" instead of return "F.log_softmax(out)" in the forward() function of some classification models.

@shengyehchen shengyehchen changed the title duplicated softmax functions are called in single model duplicated softmax functions are called in a single model Nov 17, 2017
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