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

Method Apply

lingvo/core/optimizer.py:256–321  ·  view source on GitHub ↗

For each optimizer, apply the gradient to the variable. Args: lr: A scalar. 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: Ex

(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 2

GetOptimizerMethod · 0.95
FlattenMethod · 0.45

Tested by

no test coverage detected