LookupInterface
Defined in tensorflow/python/ops/lookup_ops.py.
Represent a lookup table that persists across different steps.
initThe table initialization op.
key_dtypeThe table key dtype.
nameThe name of the table.
value_dtypeThe table value dtype.
__init____init__(
key_dtype,
value_dtype,
name
)
Construct a lookup table interface.
key_dtype: The table key type.value_dtype: The table value type.name: A name for the operation (optional).lookuplookup(
keys,
name=None
)
Looks up keys in a table, outputs the corresponding values.
sizesize(name=None)
Compute the number of elements in this table.
© 2018 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/api_docs/python/tf/contrib/lookup/LookupInterface