MCPcopy Create free account

hub / github.com/HA-Transformer/MAT / functions

Functions2,038 in github.com/HA-Transformer/MAT

Methoditerations_in_epoch
(self)
fairseq/data/iterators.py:64
Methoditerations_in_epoch
(self)
fairseq/data/iterators.py:100
Methoditerations_in_epoch
The number of consumed batches in the current epoch.
fairseq/data/iterators.py:190
Functionjsonl_iterator
(input_fname, positive_only=False, ngram_order=3, eval=False)
examples/roberta/wsc/wsc_utils.py:90
Methodlambda_step_func
Update a lambda value according to its schedule configuration.
fairseq/tasks/semisupervised_translation.py:368
Methodlanguage_pair_dataset
(lang_pair)
fairseq/tasks/multilingual_translation.py:204
Methodlanguage_pair_dataset
(lang_pair)
fairseq/tasks/semisupervised_translation.py:265
Functionlightconv_iwslt_de_en
(args)
fairseq/models/lightconv.py:711
Functionlightconv_lm_gbw
(args)
fairseq/models/lightconv_lm.py:165
Functionlightconv_wmt_en_de
(args)
fairseq/models/lightconv.py:729
Functionlightconv_wmt_en_fr_big
(args)
fairseq/models/lightconv.py:748
Functionlightconv_wmt_zh_en_big
(args)
fairseq/models/lightconv.py:754
Functionload_align_dict
(replace_unk)
fairseq/utils.py:91
Functionload_archive_file
(archive_file)
fairseq/file_utils.py:52
Functionload_checkpoint
Load a checkpoint and restore the training iterator.
fairseq/checkpoint_utils.py:93
Methodload_dataset
Load a dataset split.
fairseq/tasks/multilingual_translation.py:197
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/legacy_masked_lm.py:76
Methodload_dataset
Load a given dataset split (e.g., train, valid, test).
fairseq/tasks/sentence_prediction.py:98
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/fairseq_task.py:65
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/translation.py:168
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/language_modeling.py:144
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/cross_lingual_lm.py:143
Methodload_dataset
Load a dataset split.
fairseq/tasks/semisupervised_translation.py:134
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/audio_pretraining.py:41
Methodload_dataset
Load a given dataset split (e.g., train, valid, test).
fairseq/tasks/sentence_ranking.py:83
Methodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
examples/roberta/commonsense_qa/commonsense_qa_task.py:69
Methodload_dictionary
Load the masked LM dictionary from the filename Args: filename (str): the filename
fairseq/tasks/translation_from_pretrained_xlm.py:25
Methodload_dictionary
(cls, filename)
fairseq/tasks/legacy_masked_lm.py:50
Methodload_dictionary
(cls, filename)
fairseq/tasks/cross_lingual_lm.py:79
Functionload_embedding
(embed_dict, vocab, embedding)
fairseq/utils.py:135
Functionload_ensemble_for_inference
(filenames, task, model_arg_overrides=None)
fairseq/utils.py:22
Functionload_indexed_dataset
A helper function for loading indexed datasets. Args: path (str): path to indexed dataset (e.g., 'data-bin/train') dictionary (~f
fairseq/data/data_utils.py:46
Functionload_model_ensemble
Loads an ensemble of models. Args: filenames (List[str]): checkpoint files to load arg_overrides (Dict[str,Any], optional): overr
fairseq/checkpoint_utils.py:146
Functionload_pretrained_component_from_model
Load a pretrained FairseqEncoder or FairseqDecoder from checkpoint into the provided `component` object. If state_dict fails to load, there m
fairseq/checkpoint_utils.py:320
Methodload_pretrained_embedding_from_file
(embed_path, dictionary, embed_dim)
fairseq/models/lstm.py:88
Methodload_state_dict
Load an optimizer state dict. In general we should prefer the configuration of the existing optimizer instance (e.g., learning rate)
fairseq/optim/fairseq_optimizer.py:58
Methodload_state_dict
Load an LR scheduler state dict.
fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py:44
Methodload_state_dict
Load an LR scheduler state dict.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:28
Methodload_state_dict
(self, state_dict)
fairseq/data/iterators.py:70
Methodload_state_dict
(self, state_dict)
fairseq/data/iterators.py:110
Methodload_state_dict
Copies the state of the iterator from the given *state_dict*.
fairseq/data/iterators.py:205
Methodload_state_dict
(self, state_dict, strict=True)
fairseq/models/multilingual_transformer.py:167
Methodlog
Log intermediate stats according to log_interval.
fairseq/progress_bar.py:133
Methodlog
Log intermediate stats according to log_interval.
fairseq/progress_bar.py:167
Methodlog
Log intermediate stats according to log_interval.
fairseq/progress_bar.py:194
Methodlog
Log intermediate stats according to log_interval.
fairseq/progress_bar.py:215
Methodlog
Log intermediate stats to tensorboard.
fairseq/progress_bar.py:256
Functionlog_softmax
(x, dim, onnx_trace=False)
fairseq/utils.py:299
Methodlr_scheduler
(self)
fairseq/trainer.py:96
Functionlstm_luong_wmt_en_de
(args)
fairseq/models/lstm.py:542
Functionlstm_wiseman_iwslt_de_en
(args)
fairseq/models/lstm.py:529
Methodmake_aggregator
()
fairseq/models/wav2vec.py:117
Functionmake_builder
(out_file, impl, vocab_size=None)
fairseq/data/indexed_dataset.py:44
Methodmake_dataset
(type, dictionary)
fairseq/tasks/sentence_prediction.py:103
Methodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/modules/transformer_layer.py:270
Methodmake_generation_fast_
Replace torch.bmm with BeamableMM.
fairseq/models/fconv.py:331
Methodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/models/fconv.py:511
Methodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/models/lightconv.py:642
Methodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/models/fconv_self_att.py:456
Methodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/models/transformer_mb/transformer_mb_layer.py:375
Functionmake_positions
Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored.
fairseq/utils.py:168
Methodmax_decoder_positions
Maximum length supported by the decoder.
fairseq/models/fairseq_model.py:246
Methodmax_decoder_positions
Maximum length supported by the decoder.
fairseq/models/fairseq_model.py:326
Methodmax_decoder_positions
Maximum length supported by the decoder.
fairseq/models/fairseq_model.py:388
Methodmax_positions
Maximum number of supported positions.
fairseq/modules/sinusoidal_positional_embedding.py:83
Methodmax_positions
Maximum number of supported positions.
fairseq/modules/learned_positional_embedding.py:45
Methodmax_positions
Return the max sentence length allowed by the task.
fairseq/tasks/multilingual_translation.py:360
Methodmax_positions
(self)
fairseq/tasks/sentence_prediction.py:199
Methodmax_positions
Return the max input length allowed by the task.
fairseq/tasks/fairseq_task.py:257
Methodmax_positions
Return the max sentence length allowed by the task.
fairseq/tasks/translation.py:194
Methodmax_positions
(self)
fairseq/tasks/sentence_ranking.py:184
Methodmax_positions
Maximum input length supported by the decoder.
fairseq/models/fairseq_decoder.py:72
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/fconv.py:497
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/lightconv.py:414
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/fconv_self_att.py:452
Methodmax_positions
Maximum length supported by the model.
fairseq/models/fairseq_model.py:242
Methodmax_positions
Maximum length supported by the model.
fairseq/models/fairseq_model.py:319
Methodmax_positions
Maximum length supported by the model.
fairseq/models/fairseq_model.py:384
Methodmax_positions
Maximum length supported by the model.
fairseq/models/fairseq_model.py:435
Methodmax_positions
(self)
fairseq/models/masked_lm.py:105
Methodmax_positions
Maximum output length supported by the encoder.
fairseq/models/masked_lm.py:246
Methodmax_positions
Maximum length supported by the model.
fairseq/models/wav2vec.py:192
Methodmax_positions
Maximum input length supported by the encoder.
fairseq/models/fairseq_encoder.py:39
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/transformer.py:466
Methodmax_positions
(self)
fairseq/models/composite_encoder.py:49
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/lstm.py:463
Methodmax_positions
Maximum output length supported by the decoder.
fairseq/models/transformer_mb/transformer_mb.py:526
Methodmax_positions
(self)
tests/utils.py:233
Methodmaybe_no_sync
Whenever *samples* contains more than one mini-batch, we want to accumulate gradients locally and only call
fairseq/trainer.py:244
Methodmerge
(key)
fairseq/data/legacy/masked_lm_dataset.py:253
Methodmerge_file_
(self, another_file)
fairseq/data/indexed_dataset.py:507
Methodmerge_result
(counter)
fairseq/data/dictionary.py:287
Functionmove_to_cuda
(sample)
fairseq/utils.py:53
Functionmultilingual_transformer_iwslt_de_en
(args)
fairseq/models/multilingual_transformer.py:187
Methodmultiply_grads
Multiplies grads by a constant *c*.
fairseq/optim/fairseq_optimizer.py:77
Methodmultiply_grads
Multiplies grads by a constant *c*.
fairseq/optim/fp16_optimizer.py:337
Methodnaive_weighted_sample
(weights)
tests/test_multi_corpus_sampled_dataset.py:81
Methodnext_epoch_itr
(self, shuffle=True, fix_batches_to_gpus=False)
fairseq/data/iterators.py:56
Methodnext_epoch_itr
(self, shuffle=True, fix_batches_to_gpus=False)
fairseq/data/iterators.py:85
Methodnoising
(self, x, lengths)
fairseq/data/noising.py:217
← previousnext →1,501–1,600 of 2,038, ranked by callers