# tf.raw_ops.TensorArrayV2

<br />

Deprecated.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorArrayV2(
        size,
        dtype,
        element_shape=None,
        dynamic_size=False,
        clear_after_read=True,
        tensor_array_name='',
        name=None
    )

Use TensorArrayV3

<br />

<br />

<br />

| ## Args ||
|---|---|
| `size` | A `Tensor` of type `int32`. |
| `dtype` | A [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType). |
| `element_shape` | An optional [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/TensorShape) or list of `ints`. Defaults to `None`. |
| `dynamic_size` | An optional `bool`. Defaults to `False`. |
| `clear_after_read` | An optional `bool`. Defaults to `True`. |
| `tensor_array_name` | An optional `string`. Defaults to `""`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />