This commit is contained in:
Morvan Zhou
2018-03-08 00:22:06 +11:00
parent 968b6e2d0b
commit 46c516fc10

View File

@ -71,7 +71,7 @@ class CNN(nn.Module):
nn.ReLU(), # activation
nn.MaxPool2d(kernel_size=2), # choose max value in 2x2 area, output shape (16, 14, 14)
)
self.conv2 = nn.Sequential( # input shape (1, 14, 14)
self.conv2 = nn.Sequential( # input shape (16, 14, 14)
nn.Conv2d(16, 32, 5, 1, 2), # output shape (32, 14, 14)
nn.ReLU(), # activation
nn.MaxPool2d(2), # output shape (32, 7, 7)