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
Method
size
Return an example's size as a float or tuple. Here we return the max across all underlying datasets. This value is used when filterin
fairseq/data/multi_corpus_sampled_dataset.py:123
Method
size
(self, index)
fairseq/data/lm_context_window_dataset.py:66
Method
size
(self, index)
fairseq/data/transform_eos_lang_pair_dataset.py:64
Method
size
(self, index)
fairseq/data/transform_eos_dataset.py:100
Method
size
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``. Note: we use *tgt
fairseq/data/backtranslation_dataset.py:149
Method
size
Return an example's size as a float or tuple. This value is used when filtering a dataset with max-positions.
fairseq/data/legacy/masked_lm_dataset.py:295
Method
sizes
(self)
fairseq/data/truncate_dataset.py:27
Method
sizes
(self)
fairseq/data/concat_sentences_dataset.py:29
Method
sizes
(self)
fairseq/data/token_block_dataset.py:147
Method
sizes
(self)
fairseq/data/base_wrapper_dataset.py:30
Method
sizes
(self)
fairseq/data/list_dataset.py:19
Method
sizes
(self)
fairseq/data/prepend_token_dataset.py:29
Method
sizes
(self)
fairseq/data/concat_dataset.py:68
Method
sizes
(self)
fairseq/data/indexed_dataset.py:431
Method
sizes
(self)
fairseq/data/indexed_dataset.py:482
Method
slice_indices
(self)
fairseq/data/token_block_dataset.py:143
Function
softmax
(x, dim, onnx_trace=False)
fairseq/utils.py:292
Method
source_dictionary
(self)
fairseq/tasks/multilingual_translation.py:353
Method
source_dictionary
(self)
fairseq/tasks/sentence_prediction.py:203
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary` (if applicable for this task).
fairseq/tasks/fairseq_task.py:262
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary`.
fairseq/tasks/translation.py:199
Method
source_dictionary
(self)
fairseq/tasks/masked_lm.py:204
Method
source_dictionary
Return the :class:`~fairseq.data.Dictionary` for the language model.
fairseq/tasks/language_modeling.py:211
Method
source_dictionary
(self)
fairseq/tasks/sentence_ranking.py:188
Method
source_dictionary
(self)
tests/utils.py:147
Method
source_dictionary
(self)
examples/roberta/commonsense_qa/commonsense_qa_task.py:169
Method
source_dictionary
(self)
examples/roberta/wsc/wsc_task.py:255
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary` (if applicable for this task).
examples/speech_recognition/tasks/speech_recognition.py:113
Function
spacy_tokenizer
()
fairseq/models/roberta/alignment_utils.py:108
Method
split_exists
(split, src, tgt, lang)
fairseq/tasks/semisupervised_translation.py:141
Method
state_dict
Return the optimizer's state dict.
fairseq/optim/fairseq_optimizer.py:54
Method
state_dict
Return the LR scheduler state dict.
fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py:37
Method
state_dict
Return the LR scheduler state dict.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:24
Method
state_dict
(self)
fairseq/data/iterators.py:67
Method
state_dict
(self)
fairseq/data/iterators.py:105
Method
state_dict
Returns a dictionary containing a whole state of the iterator.
fairseq/data/iterators.py:198
Method
step
(self, step, lprobs, scores)
fairseq/search.py:59
Method
step
(self, step, lprobs, scores)
fairseq/search.py:96
Method
step
(self, step, lprobs, scores)
fairseq/search.py:122
Method
step
(self, step, lprobs, scores)
fairseq/search.py:219
Method
step
Performs a single optimization step.
fairseq/optim/bmuf.py:117
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
fairseq/optim/adafactor.py:128
Method
step
Performs a single optimization step.
fairseq/optim/fairseq_optimizer.py:90
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
fairseq/optim/adam.py:94
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
fairseq/optim/adam.py:218
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
fairseq/optim/nag.py:52
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
fairseq/optim/adamax.py:91
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py:50
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/inverse_square_root_schedule.py:60
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/cosine_lr_scheduler.py:90
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/triangular_lr_scheduler.py:53
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:32
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/polynomial_decay_schedule.py:50
Method
step
Update the learning rate at the end of the given epoch.
fairseq/optim/lr_scheduler/fixed_schedule.py:47
Method
step_update
Update the learning rate after each update.
fairseq/optim/lr_scheduler/inverse_square_root_schedule.py:66
Method
step_update
Update the learning rate after each update.
fairseq/optim/lr_scheduler/cosine_lr_scheduler.py:96
Method
step_update
Update the learning rate after each update.
fairseq/optim/lr_scheduler/triangular_lr_scheduler.py:59
Method
step_update
Update the learning rate after each update.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:40
Method
step_update
Update the learning rate after each update.
fairseq/optim/lr_scheduler/polynomial_decay_schedule.py:57
Function
strip_pad
(tensor, pad)
fairseq/utils.py:183
Method
sum_over_languages
(key)
fairseq/tasks/multilingual_translation.py:335
Method
supported_targets
(self)
fairseq/models/fairseq_model.py:393
Method
supported_targets
(self)
fairseq/models/roberta/model.py:126
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/adafactor.py:102
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/fairseq_optimizer.py:102
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/adam.py:91
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/adam.py:215
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/nag.py:49
Method
supports_memory_efficient_fp16
(self)
fairseq/optim/adamax.py:88
Method
supports_prefetch
Whether this dataset supports prefetching.
fairseq/data/nested_dictionary_dataset.py:103
Method
supports_prefetch
(self)
fairseq/data/language_pair_dataset.py:205
Method
supports_prefetch
Whether this dataset supports prefetching.
fairseq/data/fairseq_dataset.py:46
Method
supports_prefetch
(self)
fairseq/data/round_robin_zip_datasets.py:102
Method
supports_prefetch
(self)
fairseq/data/concat_sentences_dataset.py:42
Method
supports_prefetch
(self)
fairseq/data/monolingual_dataset.py:196
Method
supports_prefetch
(self)
fairseq/data/token_block_dataset.py:185
Method
supports_prefetch
(self)
fairseq/data/base_wrapper_dataset.py:43
Method
supports_prefetch
(self)
fairseq/data/concat_dataset.py:74
Method
supports_prefetch
(self)
fairseq/data/noising.py:310
Method
supports_prefetch
(self)
fairseq/data/indexed_dataset.py:178
Method
supports_prefetch
(self)
fairseq/data/indexed_dataset.py:190
Method
supports_prefetch
(self)
fairseq/data/indexed_dataset.py:486
Method
supports_prefetch
(self)
fairseq/data/multi_corpus_sampled_dataset.py:135
Method
supports_prefetch
(self)
fairseq/data/lm_context_window_dataset.py:74
Method
supports_prefetch
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:71
Method
supports_prefetch
(self)
fairseq/data/transform_eos_dataset.py:113
Method
supports_prefetch
(self)
fairseq/data/backtranslation_dataset.py:161
Method
supports_prefetch
(self)
fairseq/data/legacy/masked_lm_dataset.py:318
Method
supports_prefetch
(self)
fairseq/data/legacy/block_pair_dataset.py:301
Method
target_dictionary
(self)
fairseq/tasks/multilingual_translation.py:357
Method
target_dictionary
(self)
fairseq/tasks/legacy_masked_lm.py:62
Method
target_dictionary
(self)
fairseq/tasks/sentence_prediction.py:207
Method
target_dictionary
Return the target :class:`~fairseq.data.Dictionary` (if applicable for this task).
fairseq/tasks/fairseq_task.py:268
Method
target_dictionary
Return the target :class:`~fairseq.data.Dictionary`.
fairseq/tasks/translation.py:204
Method
target_dictionary
(self)
fairseq/tasks/masked_lm.py:208
Method
target_dictionary
Return the :class:`~fairseq.data.Dictionary` for the language model.
fairseq/tasks/language_modeling.py:217
Method
target_dictionary
(self)
fairseq/tasks/cross_lingual_lm.py:91
Method
target_dictionary
Return the :class:`~fairseq.data.Dictionary` for the language model.
fairseq/tasks/audio_pretraining.py:55
Method
target_dictionary
(self)
fairseq/tasks/sentence_ranking.py:192
Method
target_dictionary
(self)
tests/utils.py:151
← previous
next →
1,801–1,900 of 2,038, ranked by callers