Bump test tolerance for sqrtm test.

This test fails on ARM with a LAPACK built with gfortran 11.

PiperOrigin-RevId: 569540626
This commit is contained in:
Peter Hawkins 2023-09-29 11:15:05 -07:00 committed by jax authors
parent 59d86b233e
commit ef6fd2ebb6

View File

@ -1586,7 +1586,7 @@ class ScipyLinalgTest(jtu.JaxTestCase):
rng = jtu.rand_default(self.rng())
arg = rng(shape, dtype)
if dtype == np.float32 or dtype == np.complex64:
tol = 1e-3
tol = 2e-3
else:
tol = 1e-8
R = jsp.linalg.sqrtm(arg)