Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.training.clip_gradient_norms

View source on GitHub

Clips the gradients by the given value.

tf.contrib.training.clip_gradient_norms(
    gradients_to_variables,
    max_norm
)

Args:

  • gradients_to_variables: A list of gradient to variable pairs (tuples).
  • max_norm: the maximum norm value.

Returns:

A list of clipped gradient to variable pairs.