We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ccd6bc commit fb6244bCopy full SHA for fb6244b
keras/backend/mlx/numpy.py
@@ -889,9 +889,7 @@ def vstack(xs):
889
890
891
def where(condition, x1, x2):
892
- # TODO: Trivial to implement with masking but it would be incorrect for
893
- # instance in the presence of nans or infs
894
- raise NotImplementedError("The MLX backend doesn't support where yet")
+ return mx.where(condition, x1, x2)
895
896
897
def divide(x1, x2):
keras/backend/mlx/rnn.py
@@ -1,6 +1,3 @@
1
-import mlx.core as mx
2
-
3
4
def rnn(
5
step_function,
6
inputs,
@@ -27,7 +24,3 @@ def lstm(*args, **kwargs):
27
24
28
25
def gru(*args, **kwargs):
29
26
raise NotImplementedError("gru not yet implemented in mlx")
30
31
32
-def unstack(x, axis=0):
33
- return mx.split(x, axis=axis)
0 commit comments