deepr.layers.Lookup

class deepr.layers.Lookup(table_initializer_fn, **kwargs)[source]

Lookup Layer.

table_initializer_fn

Function that creates a table

Type:

Callable[[], tf.contrib.lookup.HashTable]

__init__(table_initializer_fn, **kwargs)[source]

Methods

__init__(table_initializer_fn, **kwargs)

forward(tensors[, mode])

Forward method of the layer

forward_as_dict(tensors[, mode])

Forward method on a dictionary of Tensors.