Stacks all tensors in the list.
tf.raw_ops.TensorListStack( input_handle, element_shape, element_dtype, num_elements=-1, name=None )
Requires that all tensors have the same shape.
input_handle: the input list tensor: the gathered result num_elements: optional. If not -1, the number of elements in the list.
Args | |
---|---|
input_handle | A Tensor of type variant . |
element_shape | A Tensor of type int32 . |
element_dtype | A tf.DType . |
num_elements | An optional int . Defaults to -1 . |
name | A name for the operation (optional). |
Returns | |
---|---|
A Tensor of type element_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.3/api_docs/python/tf/raw_ops/TensorListStack