typing for tensor.T/grad_fn torch.Size (#40879)
Summary:
fixes https://github.com/pytorch/pytorch/issues/40658 https://github.com/pytorch/pytorch/issues/40658
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40879
Reviewed By: pbelevich
Differential Revision: D22339146
Pulled By: ezyang
fbshipit-source-id: 6b4695e102591e7a2c391eb337c154414bacf67c