Skip to content

Commit 5d45a9c

Browse files
authored
Added arctan2 operation (#19759)
1 parent 82b7c57 commit 5d45a9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

keras/src/backend/mlx/numpy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def arctan(x):
157157

158158

159159
def arctan2(x1, x2):
160-
raise NotImplementedError("The MLX backend doesn't support arctan2 yet")
160+
x1 = convert_to_tensor(x1)
161+
x2 = convert_to_tensor(x2)
162+
return mx.arctan2(x1, x2)
161163

162164

163165
def arctanh(x):

0 commit comments

Comments
 (0)