tf.contrib.lookup.LookupInterface

View source on GitHub

Class LookupInterface

Represent a lookup table that persists across different steps.

__init__

View source

__init__(
    key_dtype,
    value_dtype
)

Construct a lookup table interface.

Args:

  • key_dtype: The table key type.
  • value_dtype: The table value type.

Properties

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

tf.contrib.lookup.LookupInterface.lookup

View source

lookup(
    keys,
    name=None
)

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

tf.contrib.lookup.LookupInterface.size

View source

size(name=None)

Compute the number of elements in this table.