Skip to content

Commit 62d0f32

Browse files
committed
Loosen golden test tolerance for CPU/GPU cross-platform compatibility
1 parent c421c04 commit 62d0f32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tests/test_highjax_trainer/test_golden_runs

tests/test_highjax_trainer/test_golden_runs/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def check_golden_run(epoch_metrics: list[dict], golden_data: dict) -> None:
3838
expected = expected_values[i]
3939
actual = float(metrics[key])
4040

41-
if not jnp.isclose(actual, expected, rtol=1e-04, atol=1e-07):
41+
if not jnp.isclose(actual, expected, rtol=1e-02, atol=1e-05):
4242
bad_fields.append((key, actual, expected))
4343

4444
if bad_fields:

0 commit comments

Comments
 (0)