tf.contrib.lookup.LookupInterface

Class LookupInterface

Defined in tensorflow/python/ops/lookup_ops.py.

Represent a lookup table that persists across different steps.

__init__

__init__(
    key_dtype,
    value_dtype,
    name
)

Construct a lookup table interface.

Args:

  • key_dtype: The table key type.
  • value_dtype: The table value type.
  • name: A name for the operation (optional).

Properties

init

The table initialization op.

key_dtype

The table key dtype.

name

The name of the table.

value_dtype

The table value dtype.

Methods

lookup

lookup(
    keys,
    name=None
)

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

size

size(name=None)

Compute the number of elements in this table.