Optimizer¶
Optimizer
-
class
tflibs.training.optimizer.
Optimizer
(learning_rate, var_scope, beta1, beta2, decay_policy='none', decay_params=None)[source]¶ -
-
apply_tower_gradients
(tower_grads, global_step=None)[source]¶ Returns average gradients.
Parameters: tower_grads (list) – A list of tuples containing gradients and corresponding variables. Returns: Applying gradients operation Return type: tf.Operation
-
compute_grad
(loss)[source]¶ Computes gradients of trainable variables with regard to a loss given.
Parameters: loss (tf.Tensor) – A tf.Tensor of a loss. Returns: A list of tuples containing gradients and corresponding variables. Return type: list
-
var_list
¶
-