Skip to content

Commit

Permalink
Increase test_make_lanczos_preconditioner atol to 0.15.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 663699118
  • Loading branch information
midfield authored and tensorflower-gardener committed Aug 16, 2024
1 parent 215e9cf commit 4066a2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_make_lanczos_preconditioner(self):
log_det = preconditioner.log_abs_determinant()
self.assertAlmostEqual(0.0, log_det, places=4)
out = preconditioner.solve(jnp.identity(10))
np.testing.assert_allclose(out, jnp.identity(10), atol=9e-2)
np.testing.assert_allclose(out, jnp.identity(10), atol=0.15)
kernel = jnp.identity(100).astype(self.dtype)
preconditioner = partial_lanczos.make_lanczos_preconditioner(
kernel, jax.random.PRNGKey(6)
Expand Down

0 comments on commit 4066a2a

Please sign in to comment.