Skip to content

Commit

Permalink
raise atol for spmv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marmaduke woodman committed Feb 20, 2024
1 parent 09b356c commit 24a9bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vbjax/tests/test_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _test_spmv(spmv, A, n):
numpy.testing.assert_allclose(jb, nb, 1e-4, 1e-6)

# now its gradient
jax.test_util.check_grads(spmv, (jx,), order=1, modes=('rev',))
jax.test_util.check_grads(spmv, (jx,), order=1, modes=('rev',), atol=0.02, rtol=0.002)


def test_csr_scipy():
Expand Down

0 comments on commit 24a9bd8

Please sign in to comment.