# tf.raw_ops.TensorListReserve

<br />

List of the given size with empty elements.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorListReserve(
        element_shape, num_elements, element_dtype, name=None
    )

element_shape: the shape of the future elements of the list
num_elements: the number of elements to reserve
handle: the output list
element_dtype: the desired type of elements in the list.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `element_shape` | A `Tensor`. Must be one of the following types: `int32`, `int64`. |
| `num_elements` | 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 />

<br />

<br />

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

<br />