tf.contrib.training.clip_gradient_norms( gradients_to_variables, max_norm )
Defined in tensorflow/contrib/training/python/training/training.py
.
Clips the gradients by the given value.
gradients_to_variables
: A list of gradient to variable pairs (tuples).max_norm
: the maximum norm value.A list of clipped gradient to variable pairs.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/training/clip_gradient_norms