Merge pull request #15673 from jakevdp:fix-i0e-test

PiperOrigin-RevId: 525556536
This commit is contained in:
jax authors 2023-04-19 14:48:29 -07:00
commit 968dbaf8f3

View File

@ -88,7 +88,8 @@ JAX_SPECIAL_FUNCTION_RECORDS = [
"i0", 1, float_dtypes, jtu.rand_default, True
),
op_record(
"i0e", 1, float_dtypes, jtu.rand_default, True
# Note: values near zero can fail numeric gradient tests.
"i0e", 1, float_dtypes, functools.partial(jtu.rand_not_small, offset=1E-3), True
),
op_record(
"i1", 1, float_dtypes, jtu.rand_default, True