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 c84d052 commit 7b58304Copy full SHA for 7b58304
keras/src/utils/backend_utils.py
@@ -78,6 +78,10 @@ def __getattr__(self, name):
78
from keras.src.backend import torch as torch_backend
79
80
return getattr(torch_backend, name)
81
+ if self._backend == "mlx":
82
+ from keras.src.backend import mlx as mlx_backend
83
+
84
+ return getattr(mlx_backend, name)
85
if self._backend == "numpy":
86
# TODO (ariG23498):
87
# The import `from keras.src.backend import numpy as numpy_backend`
0 commit comments