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

Method transform

python/tests/test_compile.py:1242–1243  ·  view source on GitHub ↗
(x: State)

Source from the content-addressed store, hash-verified

1240 b: mx.array
1241
1242 def transform(x: State):
1243 return State(x.a + 10, x.b * 10)
1244
1245 def transform_tuple(t):
1246 return (t[0] + 10, t[1] * 10)

Callers

nothing calls this directly

Calls 1

StateClass · 0.70

Tested by

no test coverage detected