fix adapative_avg_pool (#61851)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61851
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D29812559
Pulled By: makslevental
fbshipit-source-id: ac54166aaec63992748ea3299c3144ee107b24f4