cleanup templated implementation of mayAlias (#21224)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21224
ghimport-source-id: 6ec4ea015043bbddd031f92c5149e8313f21977d
Reviewed By: jamesr66a
Differential Revision: D15592318
Pulled By: suo
fbshipit-source-id: 47c52342f2a1360752306908e2f394ef52e47504