(self)
Builds the input sequence embeddings.

    Inputs:
      self.input_seqs

    Outputs:
      self.seq_embeddings
Builds the input sequence embeddings.
Builds the input sequence embeddings .
def build_seq_embeddings(self):
    """Builds the input sequence embeddings.

    Inputs:
      self.input_seqs

    Outputs:
      self.seq_embeddings
    """
    with tf.variable_scope("seq_embedding"), tf.device("/cpu:0"):
      embedding_map = tf.get_variable(
          name="map",
          shape=[self.config.vocab_size, self.config.embedding_size],
          initializer=self.initializer)
      seq_embeddings = tf.nn.embedding_lookup(embedding_map, self.input_seqs)

    self.seq_embeddings = seq_embeddings
def build_seq_embeddings ( self ) : with tf . variable_scope ( "seq_embedding" ) , tf . device ( "/cpu:0" ) : embedding_map = tf . get_variable ( name = "map" , shape = [ self . config . vocab_size , self . config . embedding_size ] , initializer = self . initializer ) seq_embeddings = tf . nn . embedding_lookup ( embedding_map , self . input_seqs ) self . seq_embeddings = seq_embeddings