|View source on GitHub|
A conditional accumulator for aggregating gradients.
tf.compat.v1.ConditionalAccumulatorBase( dtype, shape, accumulator_ref )
Up-to-date gradients (i.e., time step at which gradient was computed is equal to the accumulator's time step) are added to the accumulator.
Extraction of the average gradient is blocked until the required number of gradients has been accumulated.
||Datatype of the accumulated gradients.|
||Shape of the accumulated gradients.|
||A handle to the conditional accumulator, created by sub- classes|
||The underlying accumulator reference.|
||The datatype of the gradients accumulated by this accumulator.|
||The name of the underlying accumulator.|
num_accumulated( name=None )
Number of gradients that have currently been aggregated in accumulator.
||Optional name for the operation.|