mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[Docs] fix typo in example of torch.linalg.solve_triangular (#112361)
Fixes #112359 Pull Request resolved: https://github.com/pytorch/pytorch/pull/112361 Approved by: https://github.com/IvanYashchuk
This commit is contained in:
parent
29844adbe0
commit
e36dacaeed
|
|
@ -2242,7 +2242,7 @@ Keyword args:
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user