(x, model_hparams, vocab_size)
return bottom_simple(x, model_hparams, vocab_size, 'input_emb', reuse=None)
Bottom transformation for tuples of symbols.

  Like tensor2tensor.modalities.symbol_bottom but operates on tuples of
  symbols. Each tuple position uses its own vocabulary.

  Args:
    x: Tensor with shape [batch, ...].
    model_hparams: tf.contrib.training.HParams, model hyperparmeters.
    vocab_size: list of int, vocabulary sizes.

  Returns:
    Tensor.
Bottom transformation for tuples of symbols.
Bottom transformation for tuples of symbols .
def bottom(x, model_hparams, vocab_size):
  """Bottom transformation for tuples of symbols.

  Like tensor2tensor.modalities.symbol_bottom but operates on tuples of
  symbols. Each tuple position uses its own vocabulary.

  Args:
    x: Tensor with shape [batch, ...].
    model_hparams: tf.contrib.training.HParams, model hyperparmeters.
    vocab_size: list of int, vocabulary sizes.

  Returns:
    Tensor.
  """
  if model_hparams.shared_embedding_and_softmax_weights:
    return bottom_simple(x, model_hparams, vocab_size, 'shared', reuse=None)
  return bottom_simple(x, model_hparams, vocab_size, 'input_emb', reuse=None)
def bottom ( x , model_hparams , vocab_size ) : if model_hparams . shared_embedding_and_softmax_weights : return bottom_simple ( x , model_hparams , vocab_size , 'shared' , reuse = None ) return bottom_simple ( x , model_hparams , vocab_size , 'input_emb' , reuse = None )