Global Average Pooling in Pytorch

torch.mean works on one dimension instead of all three dimensions.