# tf.raw_ops.TensorMapHasKey

<br />

Returns whether the given key exists in the map.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorMapHasKey(
        input_handle, key, name=None
    )

input_handle: the input map
key: the key to check
has_key: whether the key is already in the map or not

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_handle` | A `Tensor` of type `variant`. |
| `key` | A `Tensor`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />