tf.contrib.training.multiply_gradients(
grads_and_vars,
gradient_multipliers
)
Defined in tensorflow/contrib/training/python/training/training.py.
Multiply specified gradients.
Args:
grads_and_vars: A list of gradient to variable pairs (tuples).gradient_multipliers: A map from eitherVariablesorVariableop names to the coefficient by which the associated gradient should be scaled.
Returns:
The updated list of gradient to variable pairs.
Raises:
ValueError: Ifgrads_and_varsis not a list or ifgradient_multipliersis empty or None or ifgradient_multipliersis not a dictionary.