Skip to content

Commit 6a957bc

Browse files
authored
feat(linalg): support eigh on mlx (#20843)
1 parent ce9aec7 commit 6a957bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

keras/src/backend/mlx/linalg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def eig(a):
1818

1919

2020
def eigh(a):
21-
raise NotImplementedError("eigh not yet implemented in mlx.")
21+
with mx.stream(mx.cpu):
22+
return mx.linalg.eigh(a)
2223

2324

2425
def lu_factor(a):

0 commit comments

Comments
 (0)