Solved by K_Frank in post #2 
              
              
                Hello Doubt - 
This may be a duplicate; see below*. 

The cross-entropy loss and the (negative) log-likelihood are 
the same in the following sense: 
If you apply Pytorch’s CrossEntropyLoss to your output layer, 
you get the same result as applying Pytorch’s NLLLoss to a 
LogSoftmax layer added afte…