# tf.raw_ops.TensorMapInsert

<br />

Returns a map that is the 'input_handle' with the given key-value pair inserted.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.TensorMapInsert(
        input_handle, key, value, name=None
    )

input_handle: the original map
output_handle: the map with key and value inserted
key: the key to be inserted
value: the value to be inserted

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

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

<br />