Type HashTable
Namespace tensorflow.contrib.lookup
Parent InitializableLookupTableBaseV1
Interfaces IHashTable
A generic hash table implementation. Example usage:
Show Example
table = tf.HashTable( tf.KeyValueTensorInitializer(keys, values), -1) out = table.lookup(input_tensor) table.init.run() print(out.eval())
Properties
Public properties
object default_value get;
object default_value_dyn get;
object init get;
object init_dyn get;
object initializer get;
object initializer_dyn get;
DType key_dtype get;
object key_dtype_dyn get;
object name get;
The name of the table.
object name_dyn get;
The name of the table.