Skip to content

Commit f89bd17

Browse files
authored
Update Part 5 - Inference and Validation (Solution).ipynb
1 parent 7e2458d commit f89bd17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro-to-pytorch/Part 5 - Inference and Validation (Solution).ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"\n",
2929
"# Define a transform to normalize the data\n",
3030
"transform = transforms.Compose([transforms.ToTensor(),\n",
31-
" transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])\n",
31+
" transforms.Normalize((0.5,), (0.5,))])\n",
3232
"# Download and load the training data\n",
3333
"trainset = datasets.FashionMNIST('~/.pytorch/F_MNIST_data/', download=True, train=True, transform=transform)\n",
3434
"trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True)\n",

0 commit comments

Comments
 (0)