Skip to content

Commit

Permalink
[Docs] fix typo in example of torch.linalg.solve_triangular (pytorc…
Browse files Browse the repository at this point in the history
  • Loading branch information
Puellaquae authored and pytorchmergebot committed Oct 30, 2023
1 parent 29844ad commit e36daca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/linalg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@
Examples::
>>> A = torch.randn(3, 3).triu_()
>>> b = torch.randn(3, 4)
>>> B = torch.randn(3, 4)
>>> X = torch.linalg.solve_triangular(A, B, upper=True)
>>> torch.allclose(A @ X, B)
True
Expand Down

0 comments on commit e36daca

Please sign in to comment.