Skip to content

Changing to AdaptiveAvgPool2d on DenseNet #671

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

Closed
wants to merge 2 commits into from
Closed

Changing to AdaptiveAvgPool2d on DenseNet #671

wants to merge 2 commits into from

Conversation

quinwu
Copy link
Contributor

@quinwu quinwu commented Nov 27, 2018

Hi,
I`m found that densenet use avg_pool2d not adaptive_avg_pool2d,this problem has fixed in SqueezeNet and ResNet in #643 so,I made these changes,.
nn.AvgPool2d -> nn.AdaptiveAvgPool2d((1,1)) assures the output's size like (batch_size, num_classes, 1,1) on DenseNet

@quinwu quinwu closed this Nov 27, 2018
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

Successfully merging this pull request may close these issues.

1 participant