Solved by Chirath_Pansilu in post #2 
              
              
                Yes it will be easier to use logsoftmax on model output and NLLLoss as loss function. 
Then when you do validation you should use exponential on model output to get actual probabilities