Skip to content

Commit

Permalink
fix: mlx import error is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetozsoy-synnada committed Nov 19, 2024
1 parent aaf7dfe commit 2dca433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/scripts/test_backend_fns.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import platform
from collections.abc import Callable
from itertools import product

Expand Down Expand Up @@ -59,6 +60,8 @@
try:
import mlx.core as mx

if platform.system() != "Darwin":
raise ImportError
testing_fns[MlxBackend] = mx.allclose
installed_backends.append(MlxBackend)
except ImportError:
Expand Down

0 comments on commit 2dca433

Please sign in to comment.