W3cubDocs

/TensorFlow C++

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.

Arguments:

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

  • Output: All of the elements in the TensorArray, concatenated along a new axis (the new dimension 0).
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
value
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
ElementShape(TensorShape x)
Structs
tensorflow::ops::TensorArrayGather::Attrs

Optional attribute setters for TensorArrayGather.

Public attributes

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(
  TensorShape x
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/tensor-array-gather.html