# tf.raw_ops.MutexV2

<br />

Creates a Mutex resource that can be locked by `MutexLock`.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.MutexV2(
        container='', shared_name='', name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `container` | An optional `string`. Defaults to `""`. If non-empty, this variable is placed in the given container. Otherwise, a default container is used. |
| `shared_name` | An optional `string`. Defaults to `""`. If non-empty, this variable is named in the given bucket with this shared_name. Otherwise, the node name is used instead. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />