Looks up keys in a table, outputs the corresponding values.
tf.raw_ops.LookupTableFindV2(
table_handle, keys, default_value, name=None
)
The tensor keys must of the same type as the keys of the table.
The output values is of the type of the table values.
The scalar default_value is the value output for keys not present in the
table. It must also be of the same type as the table values.
Args |
|---|
table_handle
Tensor of type resource. Handle to the table.
keys
Tensor. Any shape. Keys to look up.
default_value
Tensor.
name
Returns | |
|---|---|
A Tensor. Has the same type as default_value.
|