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

Method test_eval

python/tests/test_eval.py:11–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class TestEval(mlx_tests.MLXTestCase):
11 def test_eval(self):
12 arrs = [mx.ones((2, 2)) for _ in range(4)]
13 mx.eval(*arrs)
14 for x in arrs:
15 self.assertEqual(x.tolist(), [[1, 1], [1, 1]])
16
17 def test_retain_graph(self):
18 def fun(x):

Callers

nothing calls this directly

Calls 1

evalMethod · 0.45

Tested by

no test coverage detected