Implement name inference for t(), transpose(...) (#24203)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24203
Test Plan
- [namedtensor ci]
Test Plan: Imported from OSS
Differential Revision: D16915800
Pulled By: zou3519
fbshipit-source-id: d8e5beff3daa7e5fd5bfed5b02d8089cac300de8