Skip to content

Commit

Permalink
[scipy] Fix users of SciPy to prevent test failures under SciPy 1.13.
Browse files Browse the repository at this point in the history
Release notes: https://docs.scipy.org/doc/scipy-1.13.0/release/1.13.0-notes.html

PiperOrigin-RevId: 657270964
  • Loading branch information
hawkinsp authored and tensorflower-gardener committed Jul 29, 2024
1 parent b14ae1d commit a6f3989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_probability/python/distributions/student_t_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6f3989

Please sign in to comment.