named tensor max pooling support
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/31669
Test Plan: Imported from OSS
Differential Revision: D19240348
Pulled By: glaringlee
fbshipit-source-id: 004387aa753e4e41afdede66647abbb0bcbd9808