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

Method test_wrap_compiled

python/tests/test_compile.py:1102–1109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1100 self.assertTrue(mx.allclose(y, ref))
1101
1102 def test_wrap_compiled(self):
1103 @mx.compile
1104 def inner():
1105 pass
1106
1107 @wraps(inner)
1108 def wrapper():
1109 pass
1110
1111 def test_compiled_preserves_attributes(self):
1112 def inner(x: mx.array, y: str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected