Skip to content

Commit

Permalink
Temporarily disable flaky nextafter tests
Browse files Browse the repository at this point in the history
These are currently failing at HEAD due to llvm/llvm-project@72f10f7

We can re-enable once llvm/llvm-project@b9483d3 is integrated.

PiperOrigin-RevId: 601788984
  • Loading branch information
Jake VanderPlas authored and jax authors committed Jan 26, 2024
1 parent f34bcc3 commit 1ae054b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions jax/_src/internal_test_util/lax_test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ def lax_ops():
op_record("floor", 1, float_dtypes, test_util.rand_small),
op_record("ceil", 1, float_dtypes, test_util.rand_small),
op_record("round", 1, float_dtypes, test_util.rand_default),
op_record(
"nextafter",
2,
[f for f in float_dtypes if f != dtypes.bfloat16],
test_util.rand_default,
tol=0,
),
# TODO(b/322390905) re-enable this test
# op_record(
# "nextafter",
# 2,
# [f for f in float_dtypes if f != dtypes.bfloat16],
# test_util.rand_default,
# tol=0,
# ),
op_record("is_finite", 1, float_dtypes, test_util.rand_small),
op_record("exp", 1, float_dtypes + complex_dtypes, test_util.rand_small),
op_record("exp2", 1, float_dtypes + complex_dtypes, test_util.rand_small),
Expand Down
5 changes: 3 additions & 2 deletions tests/lax_numpy_operators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ def op_record(name, nargs, dtypes, shapes, rng_factory, diff_modes,
op_record("minimum", 2, all_dtypes, all_shapes, jtu.rand_some_inf, []),
op_record("multiply", 2, all_dtypes, all_shapes, jtu.rand_default, ["rev"]),
op_record("negative", 1, number_dtypes, all_shapes, jtu.rand_default, ["rev"]),
op_record("nextafter", 2, [f for f in float_dtypes if f != jnp.bfloat16],
all_shapes, jtu.rand_default, ["rev"], inexact=True, tolerance=0),
# TODO(b/322390905) re-enable this test
# op_record("nextafter", 2, [f for f in float_dtypes if f != jnp.bfloat16],
# all_shapes, jtu.rand_default, ["rev"], inexact=True, tolerance=0),
op_record("not_equal", 2, all_dtypes, all_shapes, jtu.rand_some_equal, ["rev"]),
op_record("array_equal", 2, number_dtypes, all_shapes, jtu.rand_some_equal, ["rev"]),
op_record("array_equiv", 2, number_dtypes, all_shapes, jtu.rand_some_equal, ["rev"]),
Expand Down

0 comments on commit 1ae054b

Please sign in to comment.