From 16ca0ca15cbede96352e55163b86c9929001d89c Mon Sep 17 00:00:00 2001 From: Yash Katariya Date: Thu, 30 Mar 2023 14:19:18 -0700 Subject: [PATCH] Relax the tolerance of testCauchyLogCdf PiperOrigin-RevId: 520741306 --- tests/scipy_stats_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scipy_stats_test.py b/tests/scipy_stats_test.py index b2e4cf199..e64978dac 100644 --- a/tests/scipy_stats_test.py +++ b/tests/scipy_stats_test.py @@ -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):