[XLA] More error tolerance adjustments due to incoming change in XLA:CPU

We are about to change the vectorization strategy for XLA:CPU. As a result, we have
to increase the error tolerance of the impacted tests.

PiperOrigin-RevId: 412872724
This commit is contained in:
Diego Caballero 2021-11-29 06:26:12 -08:00 committed by jax authors
parent c1ce85203c
commit 4f80e6af6e

View File

@ -406,7 +406,7 @@ class LaxBackedScipyTests(jtu.JaxTestCase):
actual = jnp.real(
lsp_special.sph_harm(jnp.array([0]), jnp.array([1]), theta, phi, n_max))
self.assertAllClose(actual, expected, rtol=7e-8, atol=1.5e-8)
self.assertAllClose(actual, expected, rtol=2e-7, atol=6e-8)
def testSphHarmOrderOneDegreeOne(self):
"""Tests the spherical harmonics of order one and degree one."""