Closed coderSkyChen closed 5 years ago
if you use nn.CrossEntropyLoss the input should be the scores before softmax layer. So you should remove the softmax layer.
Hi, Three models implemented in this repo did not contain softmax layer.
if you use nn.CrossEntropyLoss the input should be the scores before softmax layer. So you should remove the softmax layer.