Stop using Type in Python bindings (#21963)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21963
ghimport-source-id: 4d9d66ba2c8587503d892b67f535cc2a62e2d19e
Test Plan: Imported from OSS
Differential Revision: D15897423
Pulled By: li-roy
fbshipit-source-id: 2dd55ceb80971df7c86545b7bfff733387f13572