Skip to content

Commit

Permalink
Relax the tolerances in one 'lax_scipy_test' case
Browse files Browse the repository at this point in the history
An upcoming CPU codegen change increases error slightly above the current tolerances.

PiperOrigin-RevId: 404402366
  • Loading branch information
agrue authored and jax authors committed Oct 20, 2021
1 parent 9fee130 commit 349d0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lax_scipy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def testSphHarmOrderZeroDegreeOne(self):
actual = jnp.real(
lsp_special.sph_harm(jnp.array([0]), jnp.array([1]), theta, phi, n_max))

self.assertAllClose(actual, expected, rtol=1.3e-7, atol=6e-8)
self.assertAllClose(actual, expected, rtol=7e-8, atol=1.5e-8)

def testSphHarmOrderOneDegreeOne(self):
"""Tests the spherical harmonics of order one and degree one."""
Expand Down

0 comments on commit 349d0d0

Please sign in to comment.