[PyTorch] Add torch::jit::toString(const Type&) (#66689)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66689
Let's not take an extra refcount bump to stringify types.
ghstack-source-id: 144374720
Test Plan: CI
Reviewed By: suo
Differential Revision: D31691526
fbshipit-source-id: 673d632a83e6179c063530fdbc346c22d5f47d7c