Skip to content

Commit 651ed9f

Browse files
ricardoV94twiecki
authored andcommitted
Fix JAX erfinv failing test
JAX behavior at the boundary changed and no longer returns np.inf like scipy does. Fixed by evaluating at a non-boundary value.
1 parent 277559b commit 651ed9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/link/jax/test_scalar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_erfinv():
111111
out = erfinv(x)
112112
fg = FunctionGraph([x], [out])
113113

114-
compare_jax_and_py(fg, [1.0])
114+
compare_jax_and_py(fg, [0.95])
115115

116116

117117
def test_psi():

0 commit comments

Comments
 (0)