Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/build-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ runs:
run: |
pip install --upgrade pip
pip install cmake setuptools typing_extensions
pip install -e . -v
pip install -e ".[dev]" -v
- name: Install tests dependencies
shell: bash -l {0}
run: |
pip install numpy torch tensorflow
pip install tensorflow
- name: Run Python tests
shell: bash -l {0}
Expand Down
13 changes: 3 additions & 10 deletions python/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@
from copy import copy, deepcopy
from itertools import permutations

if platform.system() == "Windows":
import psutil
else:
import resource

import mlx.core as mx
import mlx_tests
import numpy as np
import psutil

try:
import tensorflow as tf
Expand Down Expand Up @@ -2087,11 +2083,8 @@ def test_deep_graphs(self):

def test_siblings_without_eval(self):
def get_mem():
if platform.system() == "Windows":
process = psutil.Process(os.getpid())
return process.memory_info().peak_wset
else:
return resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
process = psutil.Process(os.getpid())
return process.memory_info().rss

key = mx.array([1, 2])

Expand Down
Loading