Solved by ptrblck in post #4 
              
              
                Yes, since internally nn.CrossEntropyLoss will apply F.log_softmax and nn.NLLLoss (line of code), 
so you would have to chose between: 

raw logits (no activation function) + nn.CrossEntropyLoss


F.log_softmax + nn.NLLLoss