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

Method setUp

python/tests/mlx_tests.py:68–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 return platform.machine() == "arm64" and platform.system() == "Darwin"
67
68 def setUp(self):
69 self.default = mx.default_device()
70 device = os.getenv("DEVICE", None)
71 if device is not None:
72 device = getattr(mx, device)
73 mx.set_default_device(device)
74
75 def tearDown(self):
76 mx.set_default_device(self.default)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected