PyTorch Forums
Global Average Pooling in Pytorch
wangchust
(Wangchust)
December 6, 2017, 2:28pm
9
x = nn.avg_pool2d(x, x.size()[2:]) works fine when x.shape=N * C * H * W
5 Likes
show post in topic