# tf.raw_ops.TensorListSplit

<br />

Splits a tensor into a list.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorListSplit(
        tensor, element_shape, lengths, name=None
    )

list\[i\] corresponds to lengths\[i\] tensors from the input tensor.
The tensor must have rank at least 1 and contain exactly sum(lengths) elements.

tensor: The input tensor.
element_shape: A shape compatible with that of elements in the tensor.
lengths: Vector of sizes of the 0th dimension of tensors in the list.
output_handle: The list.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | A `Tensor`. |
| `element_shape` | A `Tensor`. Must be one of the following types: `int32`, `int64`. |
| `lengths` | A `Tensor` of type `int64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />