MCPcopy Create free account
hub / github.com/ml-explore/mlx / get_mem

Method get_mem

python/tests/test_array.py:2223–2225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2221 @unittest.skipIf(platform.system() == "Windows", "Memory info not accurate")
2222 def test_siblings_without_eval(self):
2223 def get_mem():
2224 process = psutil.Process(os.getpid())
2225 return process.memory_info().rss
2226
2227 key = mx.array([1, 2])
2228

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected