def get_output_vocab_embeddings_table(model_config, output_vocab_filepath):
  """Returns the embedding table used for the target sequence."""
  num_symbols = get_output_vocab_size(output_vocab_filepath)
  with tf.variable_scope("target_embeddings"):
    return tf.get_variable(
        name="symbols",
        shape=[
            num_symbols, model_config.model_parameters.target_embedding_dims
        ],
        initializer=_default_initializer(model_config.model_parameters))
Returns the embedding table used for the target sequence.
language/xsp/model/embeddings.py