Skip to content

Commit f27ac45

Browse files
committed
Fix bug in boolean_indexing_set_or_inc
1 parent 2665737 commit f27ac45

File tree

1 file changed

+4
-0
lines changed
  • pytensor/tensor/rewriting

1 file changed

+4
-0
lines changed

pytensor/tensor/rewriting/jax.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def boolean_indexing_set_or_inc(fgraph, node):
1919
2020
"""
2121

22+
# Get out if there is more than one indexing group
23+
if len(node.inputs) != 3:
24+
return None
25+
2226
op = node.op
2327
[x, y, cond] = node.inputs
2428

0 commit comments

Comments
 (0)