Relax the tolerance of testCauchyLogCdf

PiperOrigin-RevId: 520741306
This commit is contained in:
Yash Katariya 2023-03-30 14:19:18 -07:00 committed by jax authors
parent 31eeaed913
commit 16ca0ca15c

View File

@ -297,7 +297,8 @@ class LaxBackedScipyStatsTests(jtu.JaxTestCase):
with jtu.strict_promotion_if_dtypes_match(dtypes):
self._CheckAgainstNumpy(scipy_fun, lax_fun, args_maker, check_dtypes=False,
tol=1e-4)
self._CompileAndCheck(lax_fun, args_maker)
self._CompileAndCheck(lax_fun, args_maker, rtol={np.float64: 1e-14},
atol={np.float64: 1e-14})
@genNamedParametersNArgs(3)
def testCauchySf(self, shapes, dtypes):