tensorflow:: ops:: TensorArrayGradWithShape

#include <data_flow_ops.h>

Creates a TensorArray for storing multiple gradients of values in the given handle.

Summary

Similar to TensorArrayGradV3. However it creates an accumulator with an expanded shape compared to the input TensorArray whose gradient is being computed. This enables multiple gradients for the same TensorArray to be calculated using the same accumulator.

Args:

  • scope: A Scope object
  • handle: The handle to the forward TensorArray .
  • flow_in: A float scalar that enforces proper chaining of operations.
  • shape_to_prepend: An int32 vector representing a shape. Elements in the gradient accumulator will have shape which is this shape_to_prepend value concatenated with shape of the elements in the TensorArray corresponding to the input handle.
  • source: The gradient source string, used to decide which gradient TensorArray to return.

Returns:

Constructors and Destructors

TensorArrayGradWithShape (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input flow_in, :: tensorflow::Input shape_to_prepend, StringPiece source)

Public attributes

flow_out
grad_handle
operation

Public attributes

flow_out

::tensorflow::Output flow_out

grad_handle

::tensorflow::Output grad_handle

operation

Operation operation

Public functions

TensorArrayGradWithShape

 TensorArrayGradWithShape(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input flow_in,
  ::tensorflow::Input shape_to_prepend,
  StringPiece source
)