Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code does'nt match its image in neural_networks_tutorial #727

Closed
nipeone opened this issue Nov 18, 2019 · 3 comments
Closed

code does'nt match its image in neural_networks_tutorial #727

nipeone opened this issue Nov 18, 2019 · 3 comments

Comments

@nipeone
Copy link

nipeone commented Nov 18, 2019

conv1 kernel size in the code is 3x3,but feature map size after conv1 is 28x28 in the above image,it should be 30x30,or change the kernel size to 5x5.

@aimuch
Copy link

aimuch commented Nov 19, 2019

I also find self.conv1 = nn.Conv2d(1, 6, 3) should self.conv1 = nn.Conv2d(1, 6, 5) and self.conv2 has the same problem.

@aimuch
Copy link

aimuch commented Sep 16, 2020

I also find self.conv1 = nn.Conv2d(1, 6, 3) should self.conv1 = nn.Conv2d(1, 6, 5) and self.conv2 has the same problem.

Official has fix this problem:

x = F.max_pool2d(F.relu(self.conv1(x)), (2, 2))

@holly1238
Copy link
Contributor

Kernel size is 5x5. This was fixed in the tutorial in #1257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants