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

Method fun

python/tests/test_compile.py:17–18  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

15class TestCompile(mlx_tests.MLXTestCase):
16 def test_simple_compile(self):
17 def fun(x, y):
18 return x + y
19
20 compiled_fn = mx.compile(fun)
21 compiled_fn = mx.compile(fun)

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.60
sumFunction · 0.50

Tested by

no test coverage detected