Skip to content

Commit

Permalink
fix(tests): increase relative tolerance for test_cholesky_update
Browse files Browse the repository at this point in the history
  • Loading branch information
Qazalbash committed Jan 27, 2025
1 parent 7c16f0c commit 85d4982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_distributions_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_cholesky_update(chol_batch_shape, vec_batch_shape, dim, coef):
xxt = x[..., None] @ x[..., None, :]
expected = jnp.linalg.cholesky(A + coef * xxt)
actual = cholesky_update(jnp.linalg.cholesky(A), x, coef)
assert_allclose(actual, expected, atol=3.8e-4, rtol=1e-4)
assert_allclose(actual, expected, atol=3.8e-4, rtol=8e-4)


@pytest.mark.parametrize("n", [10, 100, 1000])
Expand Down

0 comments on commit 85d4982

Please sign in to comment.