Skip to content

Commit c3a3e1a

Browse files
committed
A change for willy may!
1 parent e6437cc commit c3a3e1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pytensor/link/mlx/dispatch/math.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ def neg(x):
198198
return neg
199199
elif isinstance(op.scalar_op, AND):
200200

201-
def all(x):
202-
return x.all(axis=op.axis)
201+
def all(x, y):
202+
return mx.bitwise_and(x, y)
203203

204204
return all
205205
elif isinstance(op.scalar_op, OR):
206206

207-
def any(x):
208-
return mx.any(x, axis=op.axis)
207+
def any(x, y):
208+
return mx.bitwise_or(x, y)
209209

210210
return any
211211
elif isinstance(op.scalar_op, ScalarMaximum):

0 commit comments

Comments
 (0)