ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tensorflow:: ops:: TensorArrayGather

#include <data_flow_ops.h>

Gather specific elements from the TensorArray into output value .

Summary

All elements selected by indices must have the same shape.

Args:

  • scope: A Scope object
  • handle: The handle to a TensorArray .
  • indices: The locations in the TensorArray from which to read tensor elements.
  • flow_in: A float scalar that enforces proper chaining of operations.
  • dtype: The type of the elem that is returned.

Optional attributes (see Attrs ):

  • element_shape: The expected shape of an element, if known. Used to validate the shapes of TensorArray elements. If this shape is not fully specified, gathering zero-size TensorArrays is an error.

Returns:

Constructors and Destructors

TensorArrayGather (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input indices, :: tensorflow::Input flow_in, DataType dtype)
TensorArrayGather (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input indices, :: tensorflow::Input flow_in, DataType dtype, const TensorArrayGather::Attrs & attrs)

Public attributes

operation
value

Public functions

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Public static functions

ElementShape (PartialTensorShape x)

Structs

tensorflow:: ops:: TensorArrayGather:: Attrs

Optional attribute setters for TensorArrayGather .

Public attributes

operation

Operation operation

value

::tensorflow::Output value

Public functions

TensorArrayGather

 TensorArrayGather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input indices,
  ::tensorflow::Input flow_in,
  DataType dtype
)

TensorArrayGather

 TensorArrayGather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input indices,
  ::tensorflow::Input flow_in,
  DataType dtype,
  const TensorArrayGather::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

ElementShape

Attrs ElementShape(
  PartialTensorShape x
)