Save the date! Google I/O returns May 18-20 Register now


TensorFlow 2 version View source on GitHub

Table initializers given keys and values tensors.

Inherits From: TableInitializerBase

keys The tensor for the keys.
values The tensor for the values.
key_dtype The keys data type. Used when keys is a python array.
value_dtype The values data type. Used when values is a python array.
name A name for the operation (optional).

key_dtype The expected table key dtype.
value_dtype The expected table value dtype.



View source

Initializes the given table with keys and values tensors.

table The table to initialize.

The operation that initializes the table.

TypeError when the keys and values data types do not match the table key and value data types.