MCPcopy Create free account
hub / github.com/apple/axlearn / f

Function f

axlearn/common/optimizers.py:609–610  ·  view source on GitHub ↗
(g, p, s)

Source from the content-addressed store, hash-verified

607 param_scales = _weight_decay_scales(params, per_param_scale=per_param_scale)
608
609 def f(g, p, s):
610 return g + weight_decay * lr_scale * p.value * s
611
612 updates = jax.tree.map(
613 lambda x, y, z: None if x is None else f(x, y, z),

Callers 12

gMethod · 0.85
test_wrap_functionMethod · 0.85
test_annotate_stackMethod · 0.85
update_fnFunction · 0.85
runFunction · 0.85
grad_fnMethod · 0.85

Calls

no outgoing calls

Tested by 10

gMethod · 0.68
test_wrap_functionMethod · 0.68
test_annotate_stackMethod · 0.68
grad_fnMethod · 0.68