parameters: (self,
                 key_dtype,
                 value_dtype,
                 default_value,
                 name="MutableHashTable",
                 checkpoint=True)
docstring: Creates an empty `MutableHashTable` object.
  
      Creates a table, the type of its keys and values are specified by key_dtype
      and value_dtype, respectively.
  
      Args:
        key_dtype: the type of the key tensors.
        value_dtype: the type of the value tensors.
        default_value: The value to use if a key is missing in the table.
        name: A name for the operation (optional).
        checkpoint: if True, the contents of the table are saved to and restored
          from checkpoints. If `shared_name` is empty for a checkpointed table, it
          is shared using the table node name.
  
      Returns:
        A `MutableHashTable` object.
  
      Raises:
        ValueError: If checkpoint is True and no name was specified.
docstring_summary: Creates an empty `MutableHashTable` object.
docstring_tokens: Creates an empty MutableHashTable object .
function: def __init__(self,
                 key_dtype,
                 value_dtype,
                 default_value,
                 name="MutableHashTable",
                 checkpoint=True):
      """Creates an empty `MutableHashTable` object.
  
      Creates a table, the type of its keys and values are specified by key_dtype
      and value_dtype, respectively.
  
      Args:
        key_dtype: the type of the key tensors.
        value_dtype: the type of the value tensors.
        default_value: The value to use if a key is missing in the table.
        name: A name for the operation (optional).
        checkpoint: if True, the contents of the table are saved to and restored
          from checkpoints. If `shared_name` is empty for a checkpointed table, it
          is shared using the table node name.
  
      Returns:
        A `MutableHashTable` object.
  
      Raises:
        ValueError: If checkpoint is True and no name was specified.
      """
      self._default_value = ops.convert_to_tensor(
          default_value, dtype=value_dtype)
      self._value_shape = self._default_value.get_shape()
      self._checkpoint = checkpoint
      self._key_dtype = key_dtype
      self._value_dtype = value_dtype
      self._name = name
  
      self._shared_name = None
      if context.executing_eagerly():
        # TODO(allenl): This will leak memory due to kernel caching by the
        # shared_name attribute value (but is better than the alternative of
        # sharing everything by default when executing eagerly; hopefully creating
        # tables in a loop is uncommon).
        # TODO(rohanj): Use context.shared_name() instead.
        self._shared_name = "table_%d" % (ops.uid(),)
      super(MutableHashTable, self).__init__(key_dtype, value_dtype)
  
      self._resource_handle = self._create_resource()
      if checkpoint:
        saveable = MutableHashTable._Saveable(self, name)
        if not context.executing_eagerly():
          ops.add_to_collection(ops.GraphKeys.SAVEABLE_OBJECTS, saveable)
function_tokens: def __init__ ( self , key_dtype , value_dtype , default_value , name = "MutableHashTable" , checkpoint = True ) : self . _default_value = ops . convert_to_tensor ( default_value , dtype = value_dtype ) self . _value_shape = self . _default_value . get_shape ( ) self . _checkpoint = checkpoint self . _key_dtype = key_dtype self . _value_dtype = value_dtype self . _name = name self . _shared_name = None if context . executing_eagerly ( ) : # TODO(allenl): This will leak memory due to kernel caching by the # shared_name attribute value (but is better than the alternative of # sharing everything by default when executing eagerly; hopefully creating # tables in a loop is uncommon). # TODO(rohanj): Use context.shared_name() instead. self . _shared_name = "table_%d" % ( ops . uid ( ) , ) super ( MutableHashTable , self ) . __init__ ( key_dtype , value_dtype ) self . _resource_handle = self . _create_resource ( ) if checkpoint : saveable = MutableHashTable . _Saveable ( self , name ) if not context . executing_eagerly ( ) : ops . add_to_collection ( ops . GraphKeys . SAVEABLE_OBJECTS , saveable )