Support torch.type (#51904)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51904
Fixes issue: #25433
=========
Makes tensor.type(dtype) scriptable
Test:
======
python test/test_jit.py -v TestJit.test_script_tensor_type
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D26331503
Pulled By: nikithamalgifb
fbshipit-source-id: d9188999fee601a8402fdc4d9052dee4e0d529d5