(self, cell, embedding_classes, embedding_size, initializer=None)
Create a cell with an added input embedding.

    Args:
      cell: an RNNCell, an embedding will be put before its inputs.
      embedding_classes: integer, how many symbols will be embedded.
      embedding_size: integer, the size of the vectors we embed into.
      initializer: an initializer to use when creating the embedding;
        if None, the initializer from variable scope or a default one is used.

    Raises:
      TypeError: if cell is not an RNNCell.
      ValueError: if embedding_classes is not positive.
Create a cell with an added input embedding.
Create a cell with an added input embedding .
def __init__(self, cell, embedding_classes, embedding_size, initializer=None):
    """Create a cell with an added input embedding.

    Args:
      cell: an RNNCell, an embedding will be put before its inputs.
      embedding_classes: integer, how many symbols will be embedded.
      embedding_size: integer, the size of the vectors we embed into.
      initializer: an initializer to use when creating the embedding;
        if None, the initializer from variable scope or a default one is used.

    Raises:
      TypeError: if cell is not an RNNCell.
      ValueError: if embedding_classes is not positive.
    """
    if not isinstance(cell, RNNCell):
      raise TypeError("The parameter cell is not RNNCell.")
    if embedding_classes <= 0 or embedding_size <= 0:
      raise ValueError("Both embedding_classes and embedding_size must be > 0: "
                       "%d, %d." % (embedding_classes, embedding_size))
    self._cell = cell
    self._embedding_classes = embedding_classes
    self._embedding_size = embedding_size
    self._initializer = initializer
def __init__ ( self , cell , embedding_classes , embedding_size , initializer = None ) : if not isinstance ( cell , RNNCell ) : raise TypeError ( "The parameter cell is not RNNCell." ) if embedding_classes <= 0 or embedding_size <= 0 : raise ValueError ( "Both embedding_classes and embedding_size must be > 0: " "%d, %d." % ( embedding_classes , embedding_size ) ) self . _cell = cell self . _embedding_classes = embedding_classes self . _embedding_size = embedding_size self . _initializer = initializer