Created
February 11, 2019 05:59
-
-
Save rafalpronko/15e42ecac58a0e9232c91fded94db25e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
correct = 0 | |
total = 0 | |
for images, labels in test_loader: | |
outputs = model_load_py(images) | |
_, predicted = torch.max(outputs.data, 1) | |
total += labels.size(0) | |
correct += (predicted == labels).sum() | |
print('Test Accuracy of the model on the {} test images: {}%'.format(total, 100 * correct / total)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment