def base_nmt_bilstm(hparams):
  """Base hparams for LSTM-based NMT models with bidirectional encoders."""
  ## Encoder.
  hparams.add_hparam("encoder_type", U.ENC_BI)
  hparams.add_hparam("enc_num_layers", 2)
  hparams.add_hparam("enc_num_residual_layers", 1)

  ## Decoder.
  hparams.add_hparam("dec_num_layers", 4)
  hparams.add_hparam("dec_num_residual_layers", 3)

  return hparams
Base hparams for LSTM-based NMT models with bidirectional encoders.
language/labs/consistent_zero_shot_nmt/models/basic.py