I get test loss 0 and accuracy 1.0 for all epochs. Calculate test loss with test loss = test loss / len(testloader) and for accuracy = accuracy / len(testloader)
This