Skip to content

Commit ab2443d

Browse files
authored
Fix linalg smoke tests (#1563)
1 parent aa6df6f commit ab2443d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/smoke_test/smoke_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def smoke_test_linalg() -> None:
179179
torch.dist(A, U @ torch.diag(S) @ Vh)
180180

181181
U, S, Vh = torch.linalg.svd(A)
182-
assert U.shape == A.shape and S.shape == torch.Size([3]) and Vh.shape == torch.Size([3, 3])
182+
assert U.shape == torch.Size([5, 5]) and S.shape == torch.Size([3]) and Vh.shape == torch.Size([3, 3])
183183
torch.dist(A, U[:, :3] @ torch.diag(S) @ Vh)
184184

185185
A = torch.randn(7, 5, 3)

0 commit comments

Comments
 (0)