Remove getDeviceFromPtr and allocator from Type (#21940)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21940
ghimport-source-id: 0a618878ae030f663b05662f83ac4b549a90ba29
Test Plan: Imported from OSS
Differential Revision: D15893330
Pulled By: li-roy
fbshipit-source-id: a3dfb6b4ed0c72f7f3efd00192fb63aabc9c5967