# tf.raw_ops.TensorListStack

<br />

Stacks all tensors in the list.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.TensorListStack`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/TensorListStack)

<br />

    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.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_handle` | A `Tensor` of type `variant`. |
| `element_shape` | A `Tensor` of type `int32`. |
| `element_dtype` | A [`tf.DType`](https://www.tensorflow.org/api_docs/python/tf/dtypes/DType). |
| `num_elements` | An optional `int`. Defaults to `-1`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `element_dtype`. ||

<br />