Add names to repr for named tensors
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23316
Test Plan:
- [namedtensor ci]
gh-metadata: pytorch pytorch 23316 gh/zou3519/80/head
Imported from OSS
Differential Revision: D16494415
Pulled By: zou3519
fbshipit-source-id: e483f57bdb0610d0eadbe70d673e20dc3d3f9502