This question was really helpful for my question later one.

  
    
    
    Same accuracy but different loss between Pytorch and Keras 
  
  
    As you can see in the picture below, the decreasing trend is same 
 [image]
  


Thank you @ptrblck
I used softmax function two times.

output of model
put the softmax output to the nn.CrossEntropyLoss()