Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ step
Method
step
python/tests/test_compile.py:666–668 ·
view source on GitHub ↗
(w)
Source
from the content-addressed store, hash-verified
664
return
w @ w1 + w2 @ w2
665
666
def
step(w):
667
out, grad = mx.vjp(fun, (w,), (mx.array([[1.0, 1.0], [1.0, 1.0]]),))
668
return
out[0], grad[0]
669
670
w = mx.zeros((2, 2))
671
mx.eval(w)
Callers
3
bench_torch
Function · 0.45
bench_torch
Function · 0.45
step_function
Function · 0.45
Calls
2
array
Method · 0.60
vjp
Method · 0.45
Tested by
no test coverage detected