From 7099fb46dcc88c5a77a1b254e5c27e4af90f3213 Mon Sep 17 00:00:00 2001 From: atalman Date: Mon, 2 Oct 2023 12:47:35 -0700 Subject: [PATCH] Fix linalg smoke tests --- test/smoke_test/smoke_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/smoke_test/smoke_test.py b/test/smoke_test/smoke_test.py index 8ae1d1c51..3d1b6af64 100644 --- a/test/smoke_test/smoke_test.py +++ b/test/smoke_test/smoke_test.py @@ -179,7 +179,7 @@ def smoke_test_linalg() -> None: torch.dist(A, U @ torch.diag(S) @ Vh) U, S, Vh = torch.linalg.svd(A) - assert U.shape == A.shape and S.shape == torch.Size([3]) and Vh.shape == torch.Size([3, 3]) + assert U.shape == torch.Size([5, 5]) and S.shape == torch.Size([3]) and Vh.shape == torch.Size([3, 3]) torch.dist(A, U[:, :3] @ torch.diag(S) @ Vh) A = torch.randn(7, 5, 3)