# tf.raw_ops.DisableCopyOnRead

<br />

Turns off the copy-on-read mode.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.DisableCopyOnRead(
        resource, name=None
    )

Turns off the copy-on-read mode of a resource variable. If the variable is not in copy-on-read mode, this op has no effect.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `resource` | A `Tensor` of type `resource`. The resource handle of the resource variable. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The created Operation. ||

<br />