This op exists to consume a tensor created by MutexLock (other than
direct control dependencies). It should be the only that consumes the tensor,
and will raise an error if it is not. Its only purpose is to keep the
mutex lock tensor alive until it is consumed by this op.
Args
mutex_lock
A Tensor of type variant.
A tensor returned by MutexLock.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.ConsumeMutexLock\n\n\u003cbr /\u003e\n\nThis op consumes a lock created by `MutexLock`.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.ConsumeMutexLock`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ConsumeMutexLock)\n\n\u003cbr /\u003e\n\n tf.raw_ops.ConsumeMutexLock(\n mutex_lock, name=None\n )\n\nThis op exists to consume a tensor created by `MutexLock` (other than\ndirect control dependencies). It should be the only that consumes the tensor,\nand will raise an error if it is not. Its only purpose is to keep the\nmutex lock tensor alive until it is consumed by this op.\n| **Note:** This operation must run on the same device as its input. This may be enforced via the `colocate_with` mechanism.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-----------------------------------------------------------------|\n| `mutex_lock` | A `Tensor` of type `variant`. A tensor returned by `MutexLock`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The created Operation. ||\n\n\u003cbr /\u003e"]]