[PyTorch] Take const Type& in {tryS,s}calarTypeFromJitType (#66717)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66717
No need to require a refcount bump for this function.
ghstack-source-id: 140921170
Test Plan: CI
Reviewed By: suo
Differential Revision: D31696898
fbshipit-source-id: a3732a04ccbddc32207ce90836030f3020154a77