Normally I would use the code torch.save(model.state_dict(), 'test.pth') to save the best model based on the performance of the validation set.
In the training phase, I print the loss and Accuracy in the last epoch and I got Loss:0.38703016219139097 and Accutacy:86.9.
However, When I load the model which I just got from the training phase to print the loss and Accuracy, I would get the same Accuracy and different loss: 0.38702996191978456.
Why would that happen? I try different datasets and neural networks, but get the same result.