add max_pool2d to AD, add tests for both autodiff and inference mode
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19661
Differential Revision: D15074431
Pulled By: wanchaol
fbshipit-source-id: b31cf2126c2c5d6a12c2ef5dc67b57677652f1fc