TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.lookup.TableInitializerBase

View source on GitHub

Class TableInitializerBase

Base class for lookup table initializers.

Inherits From: CheckpointableBase

__init__

View source

__init__(
    key_dtype,
    value_dtype
)

Construct a table initializer object.

Args:

  • key_dtype: Type of the table keys.
  • value_dtype: Type of the table values.

Properties

key_dtype

The expected table key dtype.

value_dtype

The expected table value dtype.

Methods

initialize

View source

initialize(table)

Returns the table initialization op.