Closed
Description
This image at https://pytorch.org/tutorials/_images/mnist.png
shows that S4
is 16@5x5
,
but the code
says 16@6x6
.
Since it is easier to change the code, the following lines
tutorials/beginner_source/blitz/neural_networks_tutorial.py
Lines 51 to 54 in 809f27e
should be changed to
self.conv1 = nn.Conv2d(1, 6, 5)
self.conv2 = nn.Conv2d(6, 16, 5)
# an affine operation: y = Wx + b
self.fc1 = nn.Linear(16 * 5 * 5, 120) # 5*5 from image dimension
Metadata
Metadata
Assignees
Labels
No labels