Skip to content

Commit 7e2458d

Browse files
authored
Update Part 4 - Fashion-MNIST (Solution).ipynb
1 parent a5f0d7c commit 7e2458d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro-to-pytorch/Part 4 - Fashion-MNIST (Solution).ipynb

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

0 commit comments

Comments
 (0)