Skip to content

Commit

Permalink
Fix linalg smoke tests (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Oct 2, 2023
1 parent aa6df6f commit ab2443d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/smoke_test/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab2443d

Please sign in to comment.