# tf.raw_ops.Variable

<br />

Use VariableV2 instead.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.Variable(
        shape, dtype, container='', shared_name='', name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `shape` | A [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/TensorShape) or list of `ints`. |
| `dtype` | A [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType). |
| `container` | An optional `string`. Defaults to `""`. |
| `shared_name` | An optional `string`. Defaults to `""`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A mutable `Tensor` of type `dtype`. ||

<br />