Skip to content

Commit 87b869d

Browse files
author
jax authors
committed
Merge pull request #20543 from jakevdp:skip-geomspace
PiperOrigin-RevId: 621267031
2 parents fb55d59 + c79f54f commit 87b869d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/lax_numpy_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5068,6 +5068,10 @@ def np_op(start, stop):
50685068
@jax.numpy_rank_promotion('allow') # This test explicitly exercises implicit rank promotion.
50695069
def testGeomspace(self, start_shape, stop_shape, num,
50705070
endpoint, dtype, axis):
5071+
# TODO(jakevdp): remove once https://github.com/numpy/numpy/issues/26195 is fixed.
5072+
if jtu.numpy_version() >= (2, 0, 0) and dtypes.issubdtype(dtype, jnp.complexfloating):
5073+
self.skipTest("NumPy 2.0.0rc1 geomspace is broken for complex dtypes.")
5074+
50715075
rng = jtu.rand_default(self.rng())
50725076
# relax default tolerances slightly
50735077
tol = {dtypes.bfloat16: 2e-2, np.float16: 4e-3, np.float32: 2e-3,

0 commit comments

Comments
 (0)