Link Search Menu Expand Document

AccumulatorApplyGradient


tensorflow C++ API

tensorflow::ops::AccumulatorApplyGradient

Applies a gradient to a given accumulator.


Summary

Does not add if local_step is lesser than the accumulator’s global_step..

Arguments:

  • scope: A Scope object
  • handle: The handle to a accumulator.
  • local_step: The local_step value at which the gradient was computed.
  • gradient: A tensor of the gradient to be accumulated.

Returns:

  • Output : the created Operation

Constructor

  • AccumulatorApplyGradient(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input local_step, ::tensorflow::Input gradient).

Public attributes

  • tensorflow::Operation operation.

AccumulatorApplyGradient block

Source link : https://github.com/EXPNUNI/enuSpace-Tensorflow/blob/master/enuSpaceTensorflow/tf_data_flow_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input handle: connect Input node.
  • Input local_step: connect Input node.
  • Input gradient : connect Input node.

Return:

  • Operation operation: Output operation of AccumulatorApplyGradient object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method