def _create_initstate_and_embeddings(self):
        """Create the initial state for the cell and the data embeddings."""
        self._init_state = self.cell.zero_state(self.batch_size, tf.float32)
        embedding = tf.get_variable(
            "embedding", [self.vocab_size, self.num_hidden])
        inputs = tf.nn.embedding_lookup(embedding, self.input_data)
        self.inputs = tf.nn.dropout(inputs, self.dropout)
Create the initial state for the cell and the data embeddings.
yadlt/models/recurrent/lstm.py