MCPcopy 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_torchFunction · 0.45
bench_torchFunction · 0.45
step_functionFunction · 0.45

Calls 2

arrayMethod · 0.60
vjpMethod · 0.45

Tested by

no test coverage detected