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

Method transform_tuple

python/tests/test_vmap.py:784–785  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

782 return State(x.a + 10, x.b * 10)
783
784 def transform_tuple(t):
785 return (t[0] + 10, t[1] * 10)
786
787 def transform_vector(t):
788 return Vector([t[0] + 10, t[1] * 10])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected