pytorch
7006ac6e - [Dynamo] Fix Tensor.T trace (#88642)

Commit
1 year ago
[Dynamo] Fix Tensor.T trace (#88642) Summary: Tensor.T considered T as a GetAttr and didn't progate "example_value" Via https://pytorch.org/docs/stable/tensors.html#torch.Tensor.T > If n is the number of dimensions in x, x.T is equivalent to > x.permute(n-1, n-2, ..., 0). Fixes pytorch/torchdynamo#1476 Test Plan: pytest test/dynamo/test_functions.py::FunctionTests::test_T Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D41130306](https://our.internmc.facebook.com/intern/diff/D41130306) Pull Request resolved: https://github.com/pytorch/pytorch/pull/88642 Approved by: https://github.com/tugsbayasgalan, https://github.com/yanboliang, https://github.com/jansel
Author
Akshit Khurana
Committer
Parents
Loading