tf.contrib.lookup.LookupInterface

Represent a lookup table that persists across different steps.

Args
key_dtype The table key type.
value_dtype The table value type.
Attributes
key_dtype The table key dtype.
name The name of the table.
resource_handle Returns the resource handle associated with this Resource.
value_dtype The table value dtype.

Methods

lookup

View source

Looks up keys in a table, outputs the corresponding values.

size

View source

Compute the number of elements in this table.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/lookup/LookupInterface