[PyTorch] Take const Type& in TensorType::fromNumberType (#66716)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66716
No need to require a refcount bump for this function.
ghstack-source-id: 140754065
Test Plan: CI
Reviewed By: suo
Differential Revision: D31696639
fbshipit-source-id: bf8aa3f542d52e82e0f6a444b8898330f3d16a31