Skip to content

Commit

Permalink
test_util: avoid overflow errors in NumPy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Feb 7, 2024
1 parent 7004497 commit 4789e87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lax_numpy_operators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def f():
@jax.numpy_rank_promotion('allow') # This test explicitly exercises implicit rank promotion.
def testOp(self, op_name, rng_factory, shapes, dtypes, check_dtypes,
tolerance, inexact, kwargs, alias):
raise ValueError()
np_op = partial(getattr(np, op_name) if hasattr(np, op_name) else getattr(np, alias), **kwargs)
jnp_op = partial(getattr(jnp, op_name), **kwargs)
np_op = jtu.ignore_warning(category=RuntimeWarning,
Expand Down

0 comments on commit 4789e87

Please sign in to comment.