parameters: (self, keys, name=None)
docstring: Looks up `keys` in a table, outputs the corresponding values.
  
      The `default_value` is used for keys not present in the table.
  
      Args:
        keys: Keys to look up. May be either a `SparseTensor` or dense `Tensor`.
        name: A name for the operation (optional).
  
      Returns:
        A `SparseTensor` if keys are sparse, otherwise a dense `Tensor`.
  
      Raises:
        TypeError: when `keys` or `default_value` doesn't match the table data
          types.
docstring_summary: Looks up `keys` in a table, outputs the corresponding values.
docstring_tokens: Looks up keys in a table outputs the corresponding values .
function: def lookup(self, keys, name=None):
      """Looks up `keys` in a table, outputs the corresponding values.
  
      The `default_value` is used for keys not present in the table.
  
      Args:
        keys: Keys to look up. May be either a `SparseTensor` or dense `Tensor`.
        name: A name for the operation (optional).
  
      Returns:
        A `SparseTensor` if keys are sparse, otherwise a dense `Tensor`.
  
      Raises:
        TypeError: when `keys` or `default_value` doesn't match the table data
          types.
      """
      key_tensor = keys
      if isinstance(keys, sparse_tensor.SparseTensor):
        key_tensor = keys.values
  
      if keys.dtype != self._key_dtype:
        raise TypeError("Signature mismatch. Keys must be dtype %s, got %s." %
                        (self._key_dtype, keys.dtype))
  
      with ops.name_scope(name, "%s_Lookup" % self._name,
                          (self._table_ref, key_tensor,
                           self._default_value)) as scope:
        # pylint: disable=protected-access
        values = gen_lookup_ops._lookup_table_find_v2(
            self._table_ref, key_tensor, self._default_value, name=scope)
        # pylint: enable=protected-access
  
      values.set_shape(key_tensor.get_shape())
      if isinstance(keys, sparse_tensor.SparseTensor):
        return sparse_tensor.SparseTensor(keys.indices, values, keys.dense_shape)
      else:
        return values
function_tokens: def lookup ( self , keys , name = None ) : key_tensor = keys if isinstance ( keys , sparse_tensor . SparseTensor ) : key_tensor = keys . values if keys . dtype != self . _key_dtype : raise TypeError ( "Signature mismatch. Keys must be dtype %s, got %s." % ( self . _key_dtype , keys . dtype ) ) with ops . name_scope ( name , "%s_Lookup" % self . _name , ( self . _table_ref , key_tensor , self . _default_value ) ) as scope : # pylint: disable=protected-access values = gen_lookup_ops . _lookup_table_find_v2 ( self . _table_ref , key_tensor , self . _default_value , name = scope ) # pylint: enable=protected-access values . set_shape ( key_tensor . get_shape ( ) ) if isinstance ( keys , sparse_tensor . SparseTensor ) : return sparse_tensor . SparseTensor ( keys . indices , values , keys . dense_shape ) else : return values