Fix max_pool1d on discontiguous tensor (#47065)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47065
#fixes https://github.com/pytorch/pytorch/issues/47054
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D24633342
Pulled By: heitorschueroff
fbshipit-source-id: b318f3a4fe68e538c71b147a82b62367f23146fa