LostTech.TensorFlow : API Documentation

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.

object PythonObject get;

Tensor resource_handle get;

object resource_handle_dyn get;

DType value_dtype get;

object value_dtype_dyn get;