Skip to content

Commit

Permalink
Fix SVD tolerance in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Holl committed Dec 2, 2024
1 parent 0b04e4e commit d78326e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/commit/math/test__ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def test_svd(self):
with b:
mat = math.randn(channel(c=3), dual(d=2))
lat, s, conv = math.svd(mat)
math.assert_close(mat, conv @ (lat * s), rel_tolerance=1e-4)
math.assert_close(mat, conv @ (lat * s), rel_tolerance=1e-5, abs_tolerance=1e-5)
# --- non-uniform list ---
matrix = stack([
math.random_normal(instance(voxels=3), spatial(x=2, y=2)),
Expand Down

0 comments on commit d78326e

Please sign in to comment.