[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:
Puelloc 2023-10-30 10:33:14 +00:00 committed by PyTorch MergeBot
parent 29844adbe0
commit e36dacaeed

View File

@ -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