|TensorFlow 1 version||View source on GitHub|
A class listing aggregation methods used to combine gradients.
Compat aliases for migration
See Migration guide for more details.
Computing partial derivatives can require aggregating gradient contributions. This class lists the various methods that can be used to combine gradients in the graph.
The following aggregation methods are part of the stable API for aggregating gradients:
ADD_N: All of the gradient terms are summed as part of one operation using the "AddN" op (see
tf.add_n). This method has the property that all gradients must be ready and buffered separately in memo