1import torch 2 3 4t = torch.tensor([[3.0, 1.5], [2.0, 1.5]]) 5 6t_sort = t.sort() 7t_sort[0][0, 0] == 1.5 # noqa: B015 8t_sort.indices[0, 0] == 1 # noqa: B015 9t_sort.values[0, 0] == 1.5 # noqa: B015 10reveal_type(t_sort) # E: torch.return_types.sort 11 12t_qr = torch.linalg.qr(t) 13t_qr[0].shape == [2, 2] # noqa: B015 14t_qr.Q.shape == [2, 2] # noqa: B015 15# TODO: Fixme, should be Tuple[{Tensor}, {Tensor}, fallback=torch.return_types.qr] 16reveal_type(t_qr) # E: Any 17