Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 6002f18

Browse files
trax-robotcopybara-github
authored andcommitted
disable testOp when numpy 2.0 is installed
PiperOrigin-RevId: 673019213
1 parent 17c19c7 commit 6002f18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

trax/tf_numpy/jax_tests/lax_numpy_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ def f():
500500
*(_valid_dtypes_for_shape(s, rec.dtypes) for s in shapes)))
501501
for rec in itertools.chain(JAX_ONE_TO_ONE_OP_RECORDS,
502502
JAX_COMPOUND_OP_RECORDS)))
503+
@unittest.skipIf(onp.__version__ >= onp.lib.NumpyVersion('2.0.0'),
504+
'tf numpy is implemented to be numpy 1.x compatible')
503505
def testOp(self, onp_op, lnp_op, rng_factory, shapes, dtypes, check_dtypes,
504506
tolerance, inexact, check_incomplete_shape):
505507
# TODO(b/147769803): Remove this skipping

0 commit comments

Comments
 (0)