Extracts the average sparse gradient in a SparseConditionalAccumulator.
The op will blocks until sufficient (i.e., more than num_required) gradients have been accumulated. If the accumulator has already aggregated more than num_required gradients, it will return its average of the accumulated gradients. Also automatically increments the recorded global_step in the accumulator by 1, and resets the aggregate to 0.
Outputindices: Indices of the average of the accumulated sparse gradients.
Outputvalues: Values of the average of the accumulated sparse gradients.
Outputshape: Shape of the average of the accumulated sparse gradients.
|Constructors and Destructors|
SparseAccumulatorTakeGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input num_required, DataType dtype )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.