Replace Type dispatch with ATenDispatch (#22008)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22008
ghimport-source-id: b0a5cc3da283b195f88636e2a61939d2facd11d9
Test Plan: Imported from OSS
Differential Revision: D15914756
Pulled By: li-roy
fbshipit-source-id: 5bc300ec525a3ee9e6491dd4c55e78bbd977d691