Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ transform_vector
Method
transform_vector
python/tests/test_vmap.py:787–788 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
785
return
(t[0] + 10, t[1] * 10)
786
787
def
transform_vector(t):
788
return
Vector([t[0] + 10, t[1] * 10])
789
790
x = State(mx.array(1), mx.array(2))
791
Callers
nothing calls this directly
Calls
1
Vector
Class · 0.70
Tested by
no test coverage detected