# tf.contrib.training.multiply_gradients

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/training/python/training/training.py#L329-L366) |

Multiply specified gradients.

    tf.contrib.training.multiply_gradients(
        grads_and_vars, gradient_multipliers
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `grads_and_vars` | A list of gradient to variable pairs (tuples). |
| `gradient_multipliers` | A map from either `Variables` or `Variable` op names to the coefficient by which the associated gradient should be scaled. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The updated list of gradient to variable pairs. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If `grads_and_vars` is not a list or if `gradient_multipliers` is empty or None or if `gradient_multipliers` is not a dictionary. |

<br />