tf.raw_ops.TensorArrayGatherV3
Gather specific elements from the TensorArray into output value
.
tf.raw_ops.TensorArrayGatherV3( handle, indices, flow_in, dtype, element_shape=None, name=None )
All elements selected by indices
must have the same shape.
Args | |
---|---|
handle | A Tensor of type resource . The handle to a TensorArray. |
indices | A Tensor of type int32 . The locations in the TensorArray from which to read tensor elements. |
flow_in | A Tensor of type float32 . A float scalar that enforces proper chaining of operations. |
dtype | A tf.DType . The type of the elem that is returned. |
element_shape | An optional tf.TensorShape or list of ints . Defaults to None . 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. |
name | A name for the operation (optional). |
Returns | |
---|---|
A Tensor of type dtype . |
© 2020 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/versions/r2.4/api_docs/python/tf/raw_ops/TensorArrayGatherV3