tensorflow:: ops:: SparseAccumulatorApplyGradient
#include <data_flow_ops.h>
Applies a sparse gradient to a given accumulator.
Summary
Does not add if local_step is smaller than the accumulator's global_step.
Args:
- scope: A Scope object
- handle: The handle to a accumulator.
- local_step: The local_step value at which the sparse gradient was computed.
- gradient_indices: Indices of the sparse gradient to be accumulated. Must be a vector.
- gradient_values: Values are the non-zero slices of the gradient, and must have the same first dimension as indices, i.e., the nnz represented by indices and values must be consistent.
- gradient_shape: Shape of the sparse gradient to be accumulated.
- has_known_shape: Boolean indicating whether gradient_shape is unknown, in which case the input is ignored during validation.
Returns:
- the created
Operation
Constructors and Destructors |
|
---|---|
SparseAccumulatorApplyGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input local_step, ::tensorflow::Input gradient_indices, ::tensorflow::Input gradient_values, ::tensorflow::Input gradient_shape, bool has_known_shape)
|
Public attributes |
|
---|---|
operation
|
Public functions |
|
---|---|
operator::tensorflow::Operation() const
|
|
Public attributes
operation
Operation operation
Public functions
SparseAccumulatorApplyGradient
SparseAccumulatorApplyGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input local_step, ::tensorflow::Input gradient_indices, ::tensorflow::Input gradient_values, ::tensorflow::Input gradient_shape, bool has_known_shape )
operator::tensorflow::Operation
operator::tensorflow::Operation() const