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

Method _get_optimizer_model_params

axlearn/common/learner.py:208–211  ·  view source on GitHub ↗
(self, model_params: Nested[OptParam])

Source from the content-addressed store, hash-verified

206 )
207 # Using self.optimizer: UpdateTransformation doesn't seem to work here.
208 self.optimizer = cast(UpdateTransformation, self._add_child("optimizer", optimizer))
209 if cfg.ema.decay is not None:
210 self.ema: PartitionedGradientTransformation = cfg.ema.instantiate()
211 if cfg.forward_fn_transformation is not None:
212 self._forward_fn_transformation = maybe_instantiate(cfg.forward_fn_transformation)
213 else:
214 self._forward_fn_transformation = lambda fn: fn

Callers 3

initMethod · 0.95
updateMethod · 0.95

Calls 2

mask_treeFunction · 0.90

Tested by

no test coverage detected