From e36dacaeed8cbb9769b0ed39a7bf33d09ee25c62 Mon Sep 17 00:00:00 2001 From: Puelloc Date: Mon, 30 Oct 2023 10:33:14 +0000 Subject: [PATCH] [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 --- torch/linalg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/linalg/__init__.py b/torch/linalg/__init__.py index 620298dcacb4d9..73057ab08c86c4 100644 --- a/torch/linalg/__init__.py +++ b/torch/linalg/__init__.py @@ -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