# tf.raw_ops.TensorListPopBack

<br />

Returns the last element of the input list as well as a list with all but that element.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorListPopBack(
        input_handle, element_shape, element_dtype, name=None
    )

Fails if the list is empty.

input_handle: the input list
tensor: the withdrawn last element of the list
element_dtype: the type of elements in the list
element_shape: the shape of the output tensor

<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/versions/r2.13/api_docs/python/tf/dtypes/DType). |
| `name` | A name for the operation (optional). |

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of `Tensor` objects (output_handle, tensor). ||
| `output_handle` | A `Tensor` of type `variant`. |
| `tensor` | A `Tensor` of type `element_dtype`. |

<br />