We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 684a929 commit ffca031Copy full SHA for ffca031
tests/link/jax/test_subtensor.py
@@ -67,7 +67,7 @@ def test_jax_Subtensor_constant():
67
compare_jax_and_py(out_fg, [x_np])
68
69
# Boolean indexing should work if indexes are constant
70
- out_pt = x_pt[np.random.binomial(1, 0.5, size=(3, 4, 5))]
+ out_pt = x_pt[np.random.binomial(1, 0.5, size=(3, 4, 5)).astype(bool)]
71
out_fg = FunctionGraph([x_pt], [out_pt])
72
73
0 commit comments