tf.raw_ops.TensorMapLookup
Stay organized with collections
Save and categorize content based on your preferences.
Returns the value from a given key in a tensor map.
tf.raw_ops.TensorMapLookup(
input_handle, key, value_dtype, name=None
)
input_handle: the input map
key: the key to be looked up
value: the value found from the given key
Args |
input_handle
|
A Tensor of type variant .
|
key
|
A Tensor .
|
value_dtype
|
A tf.DType .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type value_dtype .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.TensorMapLookup\n\n\u003cbr /\u003e\n\nReturns the value from a given key in a tensor map.\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.TensorMapLookup`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/TensorMapLookup)\n\n\u003cbr /\u003e\n\n tf.raw_ops.TensorMapLookup(\n input_handle, key, value_dtype, name=None\n )\n\ninput_handle: the input map\nkey: the key to be looked up\nvalue: the value found from the given key\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------|----------------------------------------|\n| `input_handle` | A `Tensor` of type `variant`. |\n| `key` | A `Tensor`. |\n| `value_dtype` | A [`tf.DType`](../../tf/dtypes/DType). |\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| A `Tensor` of type `value_dtype`. ||\n\n\u003cbr /\u003e"]]