We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f0d7c commit 7e2458dCopy full SHA for 7e2458d
intro-to-pytorch/Part 4 - Fashion-MNIST (Solution).ipynb
@@ -27,7 +27,7 @@
27
"\n",
28
"# Define a transform to normalize the data\n",
29
"transform = transforms.Compose([transforms.ToTensor(),\n",
30
- " transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])\n",
+ " transforms.Normalize((0.5,), (0.5,))])\n",
31
"# Download and load the training data\n",
32
"trainset = datasets.FashionMNIST('~/.pytorch/F_MNIST_data/', download=True, train=True, transform=transform)\n",
33
"trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True)\n",
0 commit comments