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

Method transform_vector

python/tests/test_compile.py:1248–1249  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

1246 return (t[0] + 10, t[1] * 10)
1247
1248 def transform_vector(t):
1249 return Vector([t[0] + 10, t[1] * 10])
1250
1251 x = State(mx.array(1), mx.array(2))
1252

Callers

nothing calls this directly

Calls 1

VectorClass · 0.70

Tested by

no test coverage detected