Path Lines of Code pytorch_translate/__init__.py 1 pytorch_translate/attention/__init__.py 25 pytorch_translate/attention/attention_utils.py 20 pytorch_translate/attention/base_attention.py 8 pytorch_translate/attention/dot_attention.py 34 pytorch_translate/attention/mlp_attention.py 40 pytorch_translate/attention/multihead_attention.py 63 pytorch_translate/attention/no_attention.py 9 pytorch_translate/attention/pooling_attention.py 45 pytorch_translate/average_attention.py 182 pytorch_translate/beam_decode.py 736 pytorch_translate/beam_search_and_decode_v2.py 493 pytorch_translate/benchmark.py 171 pytorch_translate/bleu_significance.py 176 pytorch_translate/char_aware_hybrid.py 252 pytorch_translate/char_encoder.py 355 pytorch_translate/char_source_hybrid.py 281 pytorch_translate/char_source_model.py 344 pytorch_translate/char_source_transformer_model.py 291 pytorch_translate/checkpoint.py 290 pytorch_translate/common_layers.py 446 pytorch_translate/constants.py 16 pytorch_translate/data/__init__.py 1 pytorch_translate/data/char_data.py 408 pytorch_translate/data/data.py 236 pytorch_translate/data/dictionary.py 161 pytorch_translate/data/iterators.py 56 pytorch_translate/data/language_pair_upsampling_dataset.py 17 pytorch_translate/data/masked_lm_dictionary.py 36 pytorch_translate/data/utils.py 94 pytorch_translate/data/weighted_data.py 92 pytorch_translate/dual_learning/__init__.py 1 pytorch_translate/dual_learning/dual_learning_criterion.py 192 pytorch_translate/dual_learning/dual_learning_models.py 163 pytorch_translate/dual_learning/dual_learning_task.py 386 pytorch_translate/ensemble_export.py 1526 pytorch_translate/evals.py 260 pytorch_translate/file_io.py 1 pytorch_translate/generate.py 655 pytorch_translate/hybrid_transformer_rnn.py 442 pytorch_translate/model_constants.py 13 pytorch_translate/models/__init__.py 6 pytorch_translate/models/transformer_from_pretrained_xlm.py 21 pytorch_translate/multi_model.py 672 pytorch_translate/multilingual.py 186 pytorch_translate/multilingual_model.py 138 pytorch_translate/multilingual_utils.py 68 pytorch_translate/ngram.py 125 pytorch_translate/options.py 786 pytorch_translate/preprocess.py 501 pytorch_translate/rescoring/model_scorers.py 200 pytorch_translate/rescoring/rescorer.py 298 pytorch_translate/rescoring/weights_search.py 112 pytorch_translate/research/__init__.py 1 pytorch_translate/research/attention/multihead_attention.py 72 pytorch_translate/research/beam_search/__init__.py 1 pytorch_translate/research/beam_search/competing_completed.py 182 pytorch_translate/research/deliberation_networks/deliberation_networks.py 555 pytorch_translate/research/knowledge_distillation/__init__.py 1 pytorch_translate/research/knowledge_distillation/collect_top_k_probs.py 161 pytorch_translate/research/knowledge_distillation/dual_decoder_kd_loss.py 123 pytorch_translate/research/knowledge_distillation/dual_decoder_kd_model.py 140 pytorch_translate/research/knowledge_distillation/hybrid_dual_decoder_kd_model.py 134 pytorch_translate/research/knowledge_distillation/knowledge_distillation_loss.py 84 pytorch_translate/research/knowledge_distillation/teacher_score_data.py 142 pytorch_translate/research/lexical_choice/__init__.py 1 pytorch_translate/research/lexical_choice/lexical_translation.py 17 pytorch_translate/research/multisource/__init__.py 1 pytorch_translate/research/multisource/multisource_data.py 107 pytorch_translate/research/multisource/multisource_decode.py 444 pytorch_translate/research/rescore/__init__.py 1 pytorch_translate/research/rescore/cloze_transformer_model.py 89 pytorch_translate/research/rescore/rescoring_criterion.py 227 pytorch_translate/research/tune_ensemble_weights/tune_model_weights.py 66 pytorch_translate/research/tune_ensemble_weights/tune_model_weights_with_ax.py 99 pytorch_translate/rnn.py 1275 pytorch_translate/rnn_cell.py 76 pytorch_translate/semi_supervised.py 157 pytorch_translate/sequence_criterions.py 151 pytorch_translate/tasks/__init__.py 6 pytorch_translate/tasks/cross_lingual_lm.py 48 pytorch_translate/tasks/denoising_autoencoder_task.py 226 pytorch_translate/tasks/knowledge_distillation_task.py 123 pytorch_translate/tasks/multilingual_task.py 164 pytorch_translate/tasks/pytorch_translate_multi_task.py 54 pytorch_translate/tasks/pytorch_translate_task.py 640 pytorch_translate/tasks/semi_supervised_task.py 285 pytorch_translate/tasks/translation_from_pretrained_xlm.py 45 pytorch_translate/tasks/translation_lev_task.py 47 pytorch_translate/tasks/utils.py 20 pytorch_translate/torchscript_export.py 75 pytorch_translate/train.py 614 pytorch_translate/transformer.py 755 pytorch_translate/transformer_aan.py 725 pytorch_translate/utils.py 180 pytorch_translate/vocab_constants.py 7 pytorch_translate/vocab_reduction.py 212 pytorch_translate/weighted_criterions.py 51 pytorch_translate/word_prediction/__init__.py 1 pytorch_translate/word_prediction/word_prediction_criterion.py 122 pytorch_translate/word_prediction/word_prediction_model.py 106 pytorch_translate/word_prediction/word_predictor.py 67 setup.py 24