Google I/O returns May 18-20! Reserve space and build your schedule Register now


View source on GitHub

Initializable lookup table interface.

Inherits From: LookupInterface

An initializable lookup tables persist across different steps.

default_value The value to use if a key is missing in the table.
initializer The table initializer to use.

default_value The default value of the table.
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.



View source

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

The default_value is used for keys not present in the table.

keys Keys to look up. May be either a SparseTensor or dense Tensor.
name A name for the operation (optional).

A SparseTensor if keys are sparse, otherwise a dense Tensor.

TypeError when keys or default_value doesn't match the table data types.


View source

Compute the number of elements in this table.

name A name for the operation (optional).

A scalar tensor containing the number of elements in this table.