Add `Tensor.T` attribute to reverse dimensions (#20598)
Summary:
For compatibility with numpy
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20598
Differential Revision: D15499749
Pulled By: umanwizard
fbshipit-source-id: f3306b496667f20169e9b28db3150d12183703bc