From a6f3989f46593fc33362856123feb1b8568ab510 Mon Sep 17 00:00:00 2001 From: phawkins Date: Mon, 29 Jul 2024 11:32:49 -0700 Subject: [PATCH] [scipy] Fix users of SciPy to prevent test failures under SciPy 1.13. Release notes: https://docs.scipy.org/doc/scipy-1.13.0/release/1.13.0-notes.html PiperOrigin-RevId: 657270964 --- tensorflow_probability/python/distributions/student_t_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow_probability/python/distributions/student_t_test.py b/tensorflow_probability/python/distributions/student_t_test.py index 74a13ab94d..c90627de99 100644 --- a/tensorflow_probability/python/distributions/student_t_test.py +++ b/tensorflow_probability/python/distributions/student_t_test.py @@ -704,11 +704,11 @@ def testStdtrGradient(self): err = self.compute_max_gradient_error( lambda z: stdtr(z, t), [df], delta=1e-5) - self.assertLess(err, 2e-10) + self.assertLess(err, 3e-10) err = self.compute_max_gradient_error( lambda z: stdtr(df, z), [t], delta=1e-5) - self.assertLess(err, 7e-11) + self.assertLess(err, 2e-10) @parameterized.parameters(np.float32, np.float64) @test_util.numpy_disable_gradient_test