Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
class
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
array
Method · 0.60
sum
Function · 0.50
Tested by
no test coverage detected