Skip to content

Commit d8019b9

Browse files
committed
Fix test tolerances
1 parent 79c0f45 commit d8019b9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/aggregation/test_dualproj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_expected_structure(aggregator: DualProj, matrix: Tensor):
2727

2828
@mark.parametrize(["aggregator", "matrix"], typical_pairs)
2929
def test_non_conflicting(aggregator: DualProj, matrix: Tensor):
30-
assert_non_conflicting(aggregator, matrix, atol=5e-05, rtol=5e-05)
30+
assert_non_conflicting(aggregator, matrix, atol=1e-04, rtol=1e-04)
3131

3232

3333
@mark.parametrize(["aggregator", "matrix"], typical_pairs)

tests/unit/aggregation/test_upgrad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_expected_structure(aggregator: UPGrad, matrix: Tensor):
2828

2929
@mark.parametrize(["aggregator", "matrix"], typical_pairs)
3030
def test_non_conflicting(aggregator: UPGrad, matrix: Tensor):
31-
assert_non_conflicting(aggregator, matrix, atol=3e-04, rtol=3e-04)
31+
assert_non_conflicting(aggregator, matrix, atol=4e-04, rtol=4e-04)
3232

3333

3434
@mark.parametrize(["aggregator", "matrix"], typical_pairs)
@@ -38,7 +38,7 @@ def test_permutation_invariant(aggregator: UPGrad, matrix: Tensor):
3838

3939
@mark.parametrize(["aggregator", "matrix"], typical_pairs)
4040
def test_linear_under_scaling(aggregator: UPGrad, matrix: Tensor):
41-
assert_linear_under_scaling(aggregator, matrix, n_runs=5, atol=3e-02, rtol=3e-02)
41+
assert_linear_under_scaling(aggregator, matrix, n_runs=5, atol=4e-02, rtol=4e-02)
4242

4343

4444
@mark.parametrize(["aggregator", "matrix"], non_strong_pairs)

0 commit comments

Comments
 (0)