Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lab2/solutions/PT_Part1_MNIST_Solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,9 @@
"# Process test set in batches\n",
"with torch.no_grad():\n",
" for images, labels in testset_loader:\n",
" # TODO: ensure evalaution happens on the GPU\n",
" images, labels = images.to(device), labels.to(device)\n",
"\n",
" outputs = cnn_model(images)\n",
"\n",
" # Apply softmax to get probabilities from the predicted logits\n",
Expand Down