Blow is my keras and torch code
Q :
I am wondering why the performance is poor when implementing with torch.
Blow is my keras and torch code
nn.CrossEntropyLoss
expects raw logits, so you should remove the softmax at the end of your model.
Thanks you very much!