#include <data_flow_ops.h>
A conditional accumulator for aggregating sparse gradients.
The accumulator
accepts gradients marked with local_step greater or equal to the most recent global_step known to the accumulator. The average can be extracted from the accumulator, provided sufficient gradients have been accumulated. Extracting the average automatically resets the aggregate to 0, and increments the global_step recorded by the accumulator.
Arguments:
Optional attributes (see Attrs
):
Returns:
Output
: The handle to the accumulator. Constructors and Destructors | |
---|---|
SparseConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, TensorShape shape) | |
SparseConditionalAccumulator(const ::tensorflow::Scope & scope, DataType dtype, TensorShape shape, const SparseConditionalAccumulator::Attrs & attrs) |
Public attributes | |
---|---|
handle |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Container(StringPiece x) | |
SharedName(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::SparseConditionalAccumulator::Attrs | Optional attribute setters for SparseConditionalAccumulator. |
::tensorflow::Output handle
SparseConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, TensorShape shape )
SparseConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, TensorShape shape, const SparseConditionalAccumulator::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Container( StringPiece x )
Attrs SharedName( StringPiece x )
© 2017 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/cc/class/tensorflow/ops/sparse-conditional-accumulator.html