parameters: (self, table_ref, default_value, initializer)
docstring: Construct a table object from a table reference.
  
      If requires a table initializer object (subclass of `TableInitializerBase`).
      It provides the table key and value types, as well as the op to initialize
      the table. The caller is responsible to execute the initialization op.
  
      Args:
        table_ref: The table reference, i.e. the output of the lookup table ops.
        default_value: The value to use if a key is missing in the table.
        initializer: The table initializer to use.
docstring_summary: Construct a table object from a table reference.
docstring_tokens: Construct a table object from a table reference .
function: def __init__(self, table_ref, default_value, initializer):
      """Construct a table object from a table reference.
  
      If requires a table initializer object (subclass of `TableInitializerBase`).
      It provides the table key and value types, as well as the op to initialize
      the table. The caller is responsible to execute the initialization op.
  
      Args:
        table_ref: The table reference, i.e. the output of the lookup table ops.
        default_value: The value to use if a key is missing in the table.
        initializer: The table initializer to use.
      """
      if context.in_graph_mode():
        name = table_ref.op.name.split("/")[-1]
      else:
        name = context.context().scope_name
      super(InitializableLookupTableBase,
            self).__init__(initializer.key_dtype, initializer.value_dtype,
                           name)
      self._table_ref = table_ref
      self._default_value = ops.convert_to_tensor(
          default_value, dtype=self._value_dtype)
      self._default_value.get_shape().merge_with(tensor_shape.scalar())
      self._init = initializer.initialize(self)
function_tokens: def __init__ ( self , table_ref , default_value , initializer ) : if context . in_graph_mode ( ) : name = table_ref . op . name . split ( "/" ) [ - 1 ] else : name = context . context ( ) . scope_name super ( InitializableLookupTableBase , self ) . __init__ ( initializer . key_dtype , initializer . value_dtype , name ) self . _table_ref = table_ref self . _default_value = ops . convert_to_tensor ( default_value , dtype = self . _value_dtype ) self . _default_value . get_shape ( ) . merge_with ( tensor_shape . scalar ( ) ) self . _init = initializer . initialize ( self )