MCPcopy Create free account
hub / github.com/tensorflow/lingvo / Apply

Method Apply

lingvo/core/learner.py:177–239  ·  view source on GitHub ↗

Computes updates on 'vmap' to optimize 'loss'. TODO(rpang): explore merging gradient_mask and gradient_adjuster. Args: metrics: A Dict[str, (value, weight)], from which loss can be extracted according to p.loss_name. vmap: A `.NestedMap` object containing variables to o

(self, metrics, vmap, gradient_mask=None, gradient_adjuster=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

LearningRateMethod · 0.95
AdjustGradientsMethod · 0.95
_SelfVariableScopeMethod · 0.80
TransformMethod · 0.45
ApplyGradientsMethod · 0.45

Tested by

no test coverage detected