Remove Type dispatch (#21964)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21964
ghimport-source-id: fdfb555ac4efbf31ae7d2c700a5aa44ad0cc4d7f
Test Plan: Imported from OSS
Differential Revision: D15897424
Pulled By: li-roy
fbshipit-source-id: 3cd6744254e34d70e6875ffde749b5cf959b663c