Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HA-Transformer/MAT
/ functions
Functions
2,038 in github.com/HA-Transformer/MAT
⨍
Functions
2,038
◇
Types & classes
299
Function
nullsafe_min
(l)
fairseq/utils.py:250
Method
num_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
Method
num_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
Method
num_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
Method
num_tokens
Return an example's length (number of tokens), used for batching.
fairseq/data/round_robin_zip_datasets.py:73
Method
num_tokens
(self, index)
fairseq/data/concat_sentences_dataset.py:32
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/base_wrapper_dataset.py:33
Method
num_tokens
(self, index)
fairseq/data/list_dataset.py:22
Method
num_tokens
(self, index)
fairseq/data/prepend_token_dataset.py:32
Method
num_tokens
(self, index: int)
fairseq/data/concat_dataset.py:64
Method
num_tokens
(self, index)
fairseq/data/indexed_dataset.py:165
Method
num_tokens
(self, index)
fairseq/data/indexed_dataset.py:274
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/lm_context_window_dataset.py:63
Method
num_tokens
(self, index)
fairseq/data/transform_eos_lang_pair_dataset.py:61
Method
num_tokens
(self, index)
fairseq/data/transform_eos_dataset.py:97
Method
num_tokens
Just use the tgt dataset num_tokens
fairseq/data/backtranslation_dataset.py:141
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/audio/raw_audio_dataset.py:108
Method
num_tokens
(self, index)
examples/speech_recognition/data/asr_dataset.py:96
Function
numpy_seed
Context manager which seeds the NumPy PRNG with the specified seed and restores the state afterward
fairseq/data/data_utils.py:92
Method
optimizer
(self)
fairseq/trainer.py:90
Method
optimizer
(self)
fairseq/optim/bmuf.py:61
Method
optimizer
Return a torch.optim.optimizer.Optimizer instance.
fairseq/optim/fairseq_optimizer.py:24
Method
optimizer
(self)
fairseq/optim/fp16_optimizer.py:106
Method
optimizer
(self)
fairseq/optim/fp16_optimizer.py:266
Method
optimizer_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
Method
optimizer_config
(self)
fairseq/optim/bmuf.py:65
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_config
(self)
fairseq/optim/fp16_optimizer.py:110
Method
optimizer_config
(self)
fairseq/optim/fp16_optimizer.py:270
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/language_pair_dataset.py:193
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/fairseq_dataset.py:40
Method
ordered_indices
Ordered indices for batching.
fairseq/data/round_robin_zip_datasets.py:89
Method
ordered_indices
(self)
fairseq/data/concat_sentences_dataset.py:38
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/monolingual_dataset.py:185
Method
ordered_indices
(self)
fairseq/data/base_wrapper_dataset.py:39
Method
ordered_indices
Returns indices sorted by length. So less padding is needed.
fairseq/data/concat_dataset.py:77
Method
ordered_indices
(self)
fairseq/data/lm_context_window_dataset.py:69
Method
ordered_indices
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:67
Method
ordered_indices
(self)
fairseq/data/transform_eos_dataset.py:107
Method
ordered_indices
Just use the tgt dataset ordered_indices
fairseq/data/backtranslation_dataset.py:145
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/legacy/masked_lm_dataset.py:305
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/audio/raw_audio_dataset.py:116
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
examples/speech_recognition/data/asr_dataset.py:107
Method
output_layer
Project features to the default output size (typically vocabulary size).
fairseq/models/fairseq_model.py:238
Method
output_path
(self)
scripts/wav2vec_featurize.py:158
Method
override_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
Method
override_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
Method
override_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
Method
padding_idx
(self)
fairseq/modules/character_token_embedder.py:86
Function
parse_args_and_arch
(parser, input_args=None, parse_known=False, suppress_defaults=False)
fairseq/options.py:79
Function
parse_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
Method
plasma
(self)
fairseq/data/plasma_utils.py:32
Function
post_process_prediction
(hypo_tokens, src_str, alignment, align_dict, tgt_dict, remove_bpe=None)
fairseq/utils.py:157
Method
predict
(self, head: str, tokens: torch.LongTensor, return_logits: bool = False)
fairseq/models/roberta/hub_interface.py:103
Method
prefetch
Prefetch the data required for this epoch.
fairseq/data/nested_dictionary_dataset.py:107
Method
prefetch
(self, indices)
fairseq/data/language_pair_dataset.py:211
Method
prefetch
Prefetch the data required for this epoch.
fairseq/data/fairseq_dataset.py:50
Method
prefetch
(self, indices)
fairseq/data/round_robin_zip_datasets.py:108
Method
prefetch
(self, indices)
fairseq/data/concat_sentences_dataset.py:47
Method
prefetch
(self, indices)
fairseq/data/monolingual_dataset.py:199
Method
prefetch
(self, indices)
fairseq/data/token_block_dataset.py:188
Method
prefetch
(self, indices)
fairseq/data/base_wrapper_dataset.py:46
Method
prefetch
(self, indices)
fairseq/data/concat_dataset.py:83
Method
prefetch
(self, indices)
fairseq/data/indexed_dataset.py:193
Method
prefetch
(self, indices)
fairseq/data/multi_corpus_sampled_dataset.py:141
Method
prefetch
(self, indices)
fairseq/data/lm_context_window_dataset.py:77
Method
prefetch
(self, indices)
fairseq/data/transform_eos_lang_pair_dataset.py:74
Method
prefetch
(self, indices)
fairseq/data/transform_eos_dataset.py:116
Method
prefetch
(self, indices)
fairseq/data/backtranslation_dataset.py:164
Method
prefetch
(self, indices)
fairseq/data/legacy/masked_lm_dataset.py:321
Method
prefetch
(self, indices)
fairseq/data/legacy/block_pair_dataset.py:304
Method
prepare_for_onnx_export_
(self)
fairseq/modules/sinusoidal_positional_embedding.py:33
Method
prepare_for_onnx_export_
(self)
fairseq/modules/lightweight_convolution.py:148
Method
prepare_for_onnx_export_
(self)
fairseq/modules/transformer_layer.py:183
Method
prepare_for_onnx_export_
(self)
fairseq/modules/character_token_embedder.py:60
Method
prepare_for_onnx_export_
(self)
fairseq/modules/multihead_attention.py:75
Method
prepare_for_onnx_export_
(self)
fairseq/models/fairseq_decoder.py:80
Method
prepare_for_onnx_export_
(self)
fairseq/models/transformer_mb/transformer_mb_layer.py:253
Method
pretrained
(self)
fairseq/models/fconv_self_att.py:145
Method
print
Print end-of-epoch stats.
fairseq/progress_bar.py:137
Method
print
Print end-of-epoch stats.
fairseq/progress_bar.py:171
Method
print
Print end-of-epoch stats.
fairseq/progress_bar.py:198
Method
print
Print end-of-epoch stats.
fairseq/progress_bar.py:219
Method
print
Print end-of-epoch stats.
fairseq/progress_bar.py:261
Function
print_embed_overlap
(embed_dict, vocab_dict)
fairseq/utils.py:108
Function
process_bpe_symbol
(sentence: str, bpe_symbol: str)
fairseq/data/data_utils.py:240
Function
process_sample
(aud_path, lable, utt_id, sp, tgt_dict)
examples/speech_recognition/datasets/asr_prep_json.py:24
Method
ratio
(a, b)
fairseq/bleu.py:325
Function
read_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
Method
reduction_fn
()
fairseq/legacy_distributed_data_parallel.py:136
Method
register_classification_head
( self, name: str, num_classes: int = None, embedding_size: int = None, **kwargs )
fairseq/models/roberta/hub_interface.py:96
← previous
next →
1,601–1,700 of 2,038, ranked by callers