Checks that the provided keys and values data types match those expected for this lookup table and throws an
InvalidDataTypeException
if they do not.
Checks that the provided keys and values data types match those expected for this lookup table and throws an
InvalidDataTypeException
if they do not.
Provided keys data type to check.
Provided values data type to check.
InvalidDataTypeException
If any of the provided data type does not match the corresponding expected type.
Default value to use if a key is missing from the table.
Resource handle to a lookup table.
Creates and returns an op used to initialize this table.
Creates and returns an op used to initialize this table.
Name for the created op.
Created op.
Lookup table initializer to use.
Lookup table initializer to use.
Data type of the table keys.
Data type of the table keys.
Creates an op that looks up the provided keys in this table and returns the corresponding values.
Creates an op that looks up the provided keys in this table and returns the corresponding values.
Tensor containing the keys to look up.
Name for the created op.
Created op output.
InvalidDataTypeException
If the provided keys data types does not match the keys data type of this table.
Name of this lookup table.
Name of this lookup table.
Creates an op that computes the number of elements in this table.
Creates an op that computes the number of elements in this table.
Name for the created op.
Created op output.
Data type of the table values.
Data type of the table values.
Initializable lookup table that is constructed from an existing lookup table handle.
Note that even though the caller needs to provide an initializer for this table, the caller also needs to make sure to execute the initialization op.