tf.nn.rnn_cell.EmbeddingWrapper.__init__(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.
Please login to continue.