Stay organized with collections Save and categorize content based on your preferences.

tensorflow:: ops:: SparseAccumulatorApplyGradient

#include <data_flow_ops.h>

Applies a sparse gradient to a given accumulator.


Does not add if local_step is smaller than the accumulator's global_step.


  • 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.


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


Public functions

operator::tensorflow::Operation () const

Public attributes


Operation operation

Public functions


  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() const