Skip to content

Commit 7486ffb

Browse files
committed
test: use ab matrix that is more stable for benchmarks
1 parent 97ed8d8 commit 7486ffb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/jax/test_benchmarks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ def _run_benchmark_invert_ab_noraise(u, v, ab):
280280

281281
@pytest.mark.parametrize("kind", ["run"])
282282
def test_benchmark_invert_ab_noraise(benchmark, kind):
283-
u = jnp.arange(1000).astype(jnp.float64)
284-
v = jnp.arange(1000).astype(jnp.float64)
285-
ab = jnp.array([[[-0.5, 0.3], [-0.1, 2.0]], [[-1.0, 0.3], [-0.1, 4.0]]])
283+
u = jnp.arange(1000).astype(jnp.float64) / 1000.0
284+
v = jnp.arange(1000).astype(jnp.float64) / 1000.0
285+
ab = jnp.array([[[0.6, 0.04], [-0.03, 0.5]], [[0.4, -0.02], [0.01, 0.7]]])
286286
dt = _run_benchmarks(
287287
benchmark,
288288
kind,

0 commit comments

Comments
 (0)