Skip to content

Commit cff719e

Browse files
authored
Update Part 3 - Training Neural Networks (Solution).ipynb
1 parent f89bd17 commit cff719e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro-to-pytorch/Part 3 - Training Neural Networks (Solution).ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"\n",
8787
"# Define a transform to normalize the data\n",
8888
"transform = transforms.Compose([transforms.ToTensor(),\n",
89-
" transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)),\n",
89+
" transforms.Normalize((0.5,), (0.5,)),\n",
9090
" ])\n",
9191
"# Download and load the training data\n",
9292
"trainset = datasets.MNIST('~/.pytorch/MNIST_data/', download=True, train=True, transform=transform)\n",

0 commit comments

Comments
 (0)