Fix preconditions of adaptive_avg_pooling2d (#84061)
Before, if the input had dimension `4`, the channel had to be of
dimension non zero. This was not what the errors advertised
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84061
Approved by: https://github.com/Chillee