Skip to content

Commit ffca031

Browse files
committed
Actually test boolean indexing
1 parent 684a929 commit ffca031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/link/jax/test_subtensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_jax_Subtensor_constant():
6767
compare_jax_and_py(out_fg, [x_np])
6868

6969
# Boolean indexing should work if indexes are constant
70-
out_pt = x_pt[np.random.binomial(1, 0.5, size=(3, 4, 5))]
70+
out_pt = x_pt[np.random.binomial(1, 0.5, size=(3, 4, 5)).astype(bool)]
7171
out_fg = FunctionGraph([x_pt], [out_pt])
7272
compare_jax_and_py(out_fg, [x_np])
7373

0 commit comments

Comments
 (0)