Skip to content

Commit

Permalink
[sparse] adjust tolerance on bcoo_dot_general_sampled
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 513342523
  • Loading branch information
Jake VanderPlas authored and jax authors committed Mar 1, 2023
1 parent 3abae68 commit abc6c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sparse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,8 +1310,8 @@ def f1(x, y, indices):
def f2(x, y, indices):
return sparse.bcoo_dot_general_sampled(x, y, indices, dimension_numbers=dimension_numbers)

self._CheckAgainstNumpy(f1, f2, args_maker)
self._CompileAndCheck(f2, args_maker)
self._CheckAgainstNumpy(f1, f2, args_maker, tol=MATMUL_TOL)
self._CompileAndCheck(f2, args_maker, tol=MATMUL_TOL)

@jtu.sample_product(
[dict(n_batch=n_batch, n_dense=n_dense, lhs_shape=lhs_shape,
Expand Down

0 comments on commit abc6c9b

Please sign in to comment.