MCPcopy Create free account

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

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

Functionnullsafe_min
(l)
fairseq/utils.py:250
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/nested_dictionary_dataset.py:89
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/language_pair_dataset.py:183
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/fairseq_dataset.py:30
Methodnum_tokens
Return an example's length (number of tokens), used for batching.
fairseq/data/round_robin_zip_datasets.py:73
Methodnum_tokens
(self, index)
fairseq/data/concat_sentences_dataset.py:32
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/monolingual_dataset.py:175
Methodnum_tokens
(self, index)
fairseq/data/base_wrapper_dataset.py:33
Methodnum_tokens
(self, index)
fairseq/data/list_dataset.py:22
Methodnum_tokens
(self, index)
fairseq/data/prepend_token_dataset.py:32
Methodnum_tokens
(self, index: int)
fairseq/data/concat_dataset.py:64
Methodnum_tokens
(self, index)
fairseq/data/indexed_dataset.py:165
Methodnum_tokens
(self, index)
fairseq/data/indexed_dataset.py:274
Methodnum_tokens
Return an example's length (number of tokens), used for batching. Here we return the max across all examples at index across all unde
fairseq/data/multi_corpus_sampled_dataset.py:112
Methodnum_tokens
(self, index)
fairseq/data/lm_context_window_dataset.py:63
Methodnum_tokens
(self, index)
fairseq/data/transform_eos_lang_pair_dataset.py:61
Methodnum_tokens
(self, index)
fairseq/data/transform_eos_dataset.py:97
Methodnum_tokens
Just use the tgt dataset num_tokens
fairseq/data/backtranslation_dataset.py:141
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce max-tokens during batching.
fairseq/data/legacy/masked_lm_dataset.py:285
Methodnum_tokens
(self, index)
fairseq/data/audio/raw_audio_dataset.py:108
Methodnum_tokens
(self, index)
examples/speech_recognition/data/asr_dataset.py:96
Functionnumpy_seed
Context manager which seeds the NumPy PRNG with the specified seed and restores the state afterward
fairseq/data/data_utils.py:92
Methodoptimizer
(self)
fairseq/trainer.py:90
Methodoptimizer
(self)
fairseq/optim/bmuf.py:61
Methodoptimizer
Return a torch.optim.optimizer.Optimizer instance.
fairseq/optim/fairseq_optimizer.py:24
Methodoptimizer
(self)
fairseq/optim/fp16_optimizer.py:106
Methodoptimizer
(self)
fairseq/optim/fp16_optimizer.py:266
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adadelta.py:31
Methodoptimizer_config
(self)
fairseq/optim/bmuf.py:65
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/sgd.py:28
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adagrad.py:26
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adafactor.py:43
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/fairseq_optimizer.py:33
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adam.py:42
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/nag.py:29
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adamax.py:33
Methodoptimizer_config
(self)
fairseq/optim/fp16_optimizer.py:110
Methodoptimizer_config
(self)
fairseq/optim/fp16_optimizer.py:270
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/language_pair_dataset.py:193
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/fairseq_dataset.py:40
Methodordered_indices
Ordered indices for batching.
fairseq/data/round_robin_zip_datasets.py:89
Methodordered_indices
(self)
fairseq/data/concat_sentences_dataset.py:38
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/monolingual_dataset.py:185
Methodordered_indices
(self)
fairseq/data/base_wrapper_dataset.py:39
Methodordered_indices
Returns indices sorted by length. So less padding is needed.
fairseq/data/concat_dataset.py:77
Methodordered_indices
(self)
fairseq/data/lm_context_window_dataset.py:69
Methodordered_indices
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:67
Methodordered_indices
(self)
fairseq/data/transform_eos_dataset.py:107
Methodordered_indices
Just use the tgt dataset ordered_indices
fairseq/data/backtranslation_dataset.py:145
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/legacy/masked_lm_dataset.py:305
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/audio/raw_audio_dataset.py:116
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
examples/speech_recognition/data/asr_dataset.py:107
Methodoutput_layer
Project features to the default output size (typically vocabulary size).
fairseq/models/fairseq_model.py:238
Methodoutput_path
(self)
scripts/wav2vec_featurize.py:158
Methodoverride_config
vggtrasformer_1 use 14 layers of transformer, for testing purpose, it is too expensive. For fast turn-around test
tests/speech_recognition/test_vggtransformer.py:27
Methodoverride_config
vggtrasformer_2 use 16 layers of transformer, for testing purpose, it is too expensive. For fast turn-around test
tests/speech_recognition/test_vggtransformer.py:46
Methodoverride_config
vggtrasformer_base use 12 layers of transformer, for testing purpose, it is too expensive. For fast turn-around t
tests/speech_recognition/test_vggtransformer.py:65
Methodpadding_idx
(self)
fairseq/modules/character_token_embedder.py:86
Functionparse_args_and_arch
(parser, input_args=None, parse_known=False, suppress_defaults=False)
fairseq/options.py:79
Functionparse_embedding
Parse embedding text file into a dictionary of word and embedding tensors. The first line can have vocabulary size and dimension. The following l
fairseq/utils.py:115
Methodplasma
(self)
fairseq/data/plasma_utils.py:32
Functionpost_process_prediction
(hypo_tokens, src_str, alignment, align_dict, tgt_dict, remove_bpe=None)
fairseq/utils.py:157
Methodpredict
(self, head: str, tokens: torch.LongTensor, return_logits: bool = False)
fairseq/models/roberta/hub_interface.py:103
Methodprefetch
Prefetch the data required for this epoch.
fairseq/data/nested_dictionary_dataset.py:107
Methodprefetch
(self, indices)
fairseq/data/language_pair_dataset.py:211
Methodprefetch
Prefetch the data required for this epoch.
fairseq/data/fairseq_dataset.py:50
Methodprefetch
(self, indices)
fairseq/data/round_robin_zip_datasets.py:108
Methodprefetch
(self, indices)
fairseq/data/concat_sentences_dataset.py:47
Methodprefetch
(self, indices)
fairseq/data/monolingual_dataset.py:199
Methodprefetch
(self, indices)
fairseq/data/token_block_dataset.py:188
Methodprefetch
(self, indices)
fairseq/data/base_wrapper_dataset.py:46
Methodprefetch
(self, indices)
fairseq/data/concat_dataset.py:83
Methodprefetch
(self, indices)
fairseq/data/indexed_dataset.py:193
Methodprefetch
(self, indices)
fairseq/data/multi_corpus_sampled_dataset.py:141
Methodprefetch
(self, indices)
fairseq/data/lm_context_window_dataset.py:77
Methodprefetch
(self, indices)
fairseq/data/transform_eos_lang_pair_dataset.py:74
Methodprefetch
(self, indices)
fairseq/data/transform_eos_dataset.py:116
Methodprefetch
(self, indices)
fairseq/data/backtranslation_dataset.py:164
Methodprefetch
(self, indices)
fairseq/data/legacy/masked_lm_dataset.py:321
Methodprefetch
(self, indices)
fairseq/data/legacy/block_pair_dataset.py:304
Methodprepare_for_onnx_export_
(self)
fairseq/modules/sinusoidal_positional_embedding.py:33
Methodprepare_for_onnx_export_
(self)
fairseq/modules/lightweight_convolution.py:148
Methodprepare_for_onnx_export_
(self)
fairseq/modules/transformer_layer.py:183
Methodprepare_for_onnx_export_
(self)
fairseq/modules/character_token_embedder.py:60
Methodprepare_for_onnx_export_
(self)
fairseq/modules/multihead_attention.py:75
Methodprepare_for_onnx_export_
(self)
fairseq/models/fairseq_decoder.py:80
Methodprepare_for_onnx_export_
(self)
fairseq/models/transformer_mb/transformer_mb_layer.py:253
Methodpretrained
(self)
fairseq/models/fconv_self_att.py:145
Methodprint
Print end-of-epoch stats.
fairseq/progress_bar.py:137
Methodprint
Print end-of-epoch stats.
fairseq/progress_bar.py:171
Methodprint
Print end-of-epoch stats.
fairseq/progress_bar.py:198
Methodprint
Print end-of-epoch stats.
fairseq/progress_bar.py:219
Methodprint
Print end-of-epoch stats.
fairseq/progress_bar.py:261
Functionprint_embed_overlap
(embed_dict, vocab_dict)
fairseq/utils.py:108
Functionprocess_bpe_symbol
(sentence: str, bpe_symbol: str)
fairseq/data/data_utils.py:240
Functionprocess_sample
(aud_path, lable, utt_id, sp, tgt_dict)
examples/speech_recognition/datasets/asr_prep_json.py:24
Methodratio
(a, b)
fairseq/bleu.py:325
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
fairseq/file_utils.py:303
Methodreduction_fn
()
fairseq/legacy_distributed_data_parallel.py:136
Methodregister_classification_head
( self, name: str, num_classes: int = None, embedding_size: int = None, **kwargs )
fairseq/models/roberta/hub_interface.py:96
← previousnext →1,601–1,700 of 2,038, ranked by callers