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

Method Apply

lingvo/core/optimizer.py:743–786  ·  view source on GitHub ↗

Applies the gradient to the variable. Args: lr: A scalar or callable that returns the base learning rate. var_grad: A `.NestedMap` of (var, grad) pairs. weight: A scalar tensor that stores the weight of the gradients. Returns: The variable update op. Raises:

(self, lr, var_grad, weight=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

GetOptimizerMethod · 0.95
AddSummaryMethod · 0.95
GetLrValueFunction · 0.85
VarReuseForSlotVarsMethod · 0.80

Tested by

no test coverage detected