Skip to content

Commit 1fdccc9

Browse files
authored
16x5x5 matches the image at the top of the page
1 parent 0ab21ee commit 1fdccc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/blitz/neural_networks_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self):
5151
self.conv1 = nn.Conv2d(1, 6, 5)
5252
self.conv2 = nn.Conv2d(6, 16, 5)
5353
# an affine operation: y = Wx + b
54-
self.fc1 = nn.Linear(16 * 6 * 6, 120) # 6*6 from image dimension
54+
self.fc1 = nn.Linear(16 * 5 * 5, 120) # 5*5 from image dimension
5555
self.fc2 = nn.Linear(120, 84)
5656
self.fc3 = nn.Linear(84, 10)
5757

0 commit comments

Comments
 (0)