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 9480467 commit 6308024Copy full SHA for 6308024
beginner_source/blitz/neural_networks_tutorial.py
@@ -46,12 +46,12 @@ class Net(nn.Module):
46
47
def __init__(self):
48
super(Net, self).__init__()
49
- # 1 input image channel, 6 output channels, 5x5 square convolution
+ # 1 input image channel, 6 output channels, 3x3 square convolution
50
# kernel
51
- self.conv1 = nn.Conv2d(1, 6, 5)
52
- self.conv2 = nn.Conv2d(6, 16, 5)
+ self.conv1 = nn.Conv2d(1, 6, 3)
+ self.conv2 = nn.Conv2d(6, 16, 3)
53
# an affine operation: y = Wx + b
54
- self.fc1 = nn.Linear(16 * 5 * 5, 120)
+ self.fc1 = nn.Linear(16 * 6 * 6, 120) # 6*6 from image dimension
55
self.fc2 = nn.Linear(120, 84)
56
self.fc3 = nn.Linear(84, 10)
57
0 commit comments