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