You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
shengyehchen
changed the title
duplicated softmax functions are called in single model
duplicated softmax functions are called in a single model
Nov 17, 2017
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.
The text was updated successfully, but these errors were encountered: