Merge pull request #11945 from hawkinsp:tol

PiperOrigin-RevId: 467986622
This commit is contained in:
jax authors 2022-08-16 11:58:20 -07:00
commit 78c231e825

View File

@ -299,7 +299,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):
a, = args_maker()
w1, _ = jnp.linalg.eig(a)
w2 = jnp.linalg.eigvals(a)
self.assertAllClose(w1, w2, rtol={np.complex128: 1e-14})
self.assertAllClose(w1, w2, rtol={np.complex64: 1e-5, np.complex128: 1e-14})
@jtu.skip_on_devices("gpu", "tpu")
def testEigvalsInf(self):