Skip to content

Commit

Permalink
Relax some test tolerances in for_loop_test.py.
Browse files Browse the repository at this point in the history
This PR attempts to fix some CI failures on Mac ARM.

PiperOrigin-RevId: 672312564
  • Loading branch information
hawkinsp authored and jax authors committed Sep 8, 2024
1 parent 5af1efb commit b6abd73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/for_loop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def g(a, b):
expected_tangents = g_lin(a, b)
_, actual_tangents = jax.jvp(g, (a, b), (a, b))
np.testing.assert_allclose(actual_tangents[0], expected_tangents[0])
np.testing.assert_allclose(actual_tangents[1], expected_tangents[1])
np.testing.assert_allclose(actual_tangents[1], expected_tangents[1],
rtol=1e-6)

@jtu.sample_product(
[dict(for_body_name=for_body_name, f=for_body, ref=ref,
Expand Down

0 comments on commit b6abd73

Please sign in to comment.