mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 12:56:07 +00:00
Fix flaky generated_fun_test.py test (#3885)
This commit is contained in:
parent
d7733c30d6
commit
7506a3e5f0
@ -186,7 +186,7 @@ def inner_prod(xs, ys):
|
||||
return sum(jnp.sum(x * y) for x, y in xys)
|
||||
|
||||
def jvp_fd(fun, args, tangents):
|
||||
EPS = 1e-4
|
||||
EPS = 1e-3
|
||||
def eval_eps(eps):
|
||||
return fun(*[x if t is None else x + eps * t
|
||||
for x, t in zip(args, tangents)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user