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

Function rms_norm_loop

benchmarks/python/rms_norm_bench.py:29–33  ·  view source on GitHub ↗
(g, x, w)

Source from the content-addressed store, hash-verified

27 mx.eval(x, w, y)
28
29 def rms_norm_loop(g, x, w):
30 gx, gw = x, w
31 for _ in range(32):
32 gx, gw = g(gx, gw, y)
33 return gx, gw
34
35 time_fn(rms_norm_loop, g1, x, w)
36 time_fn(rms_norm_loop, g2, x, w)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected