tf.contrib.training.multiply_gradients

View source on GitHub

Multiply specified gradients.

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.

The updated list of gradient to variable pairs.

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.
{"cc_re__cc_re__cc_by_4_0": ["alueError</code>\n</td>\n<td>\nIf <code translate=\"no\" dir=\"ltr\">grads_and_vars</code> is not a list or if <code translate=\"no\" dir=\"ltr\">gradient_multipliers</code>\nis empty or None or if <code translate=\"no\" dir=\"ltr\">gradient_multipliers</code> is not a dictionary.\n</td>\n</tr>\n</table></p>\n\n    \n\n    \n  </div>\n\n  \n\n  \n    \n    \n      \n       \n    \n    \n  \n\n  \n  \n</article>\n\n\n<devsite-content-footer class=\"nocontent\">\n  <p>Except as otherwise noted, the content of this page is licensed under the <a href=\"https://creativecommons.org/licenses/by/4.0/\">Creative Commons Attribution 4.0 License</a>, and code samples are licensed under the <a href=\"https://www.apache.org/licenses/LICENSE-2.0\">Apache 2.0 License</a>. For details, see the <a href=\"https://developers.google.cn/site-policies\">Google Developers Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p>\n  <p>Last updated 2020-10-01 UTC.</p>\n</devsite-content-footer>\n\n\n\n\n\n  \n<div class=\"devsite-content-data\">\n  <template class=\"devsite-thumb-rating-down-categ"]}