Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ functions
Functions
3,098 in github.com/FLC777/GLAT
⨍
Functions
3,098
◇
Types & classes
478
↳
Endpoints
1
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/semisupervised_translation.py:144
Method
setup_task
Setup the task (e.g., load dictionaries). Args: cfg (AudioPretrainingConfig): configuration of this task
fairseq/tasks/audio_pretraining.py:109
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/sentence_ranking.py:89
Function
shard_
(optimizer, group)
fairseq/optim/shard.py:19
Method
shuffle_batches
(batches, seed)
fairseq/data/iterators.py:454
Method
size
(self, index)
fairseq/benchmark/dummy_masked_lm.py:119
Method
size
(self, index)
fairseq/benchmark/dummy_mt.py:111
Method
size
(self, index)
fairseq/benchmark/dummy_lm.py:110
Method
size
(self, index)
fairseq/data/subsample_dataset.py:58
Method
size
(self, index)
fairseq/data/append_token_dataset.py:37
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/nested_dictionary_dataset.py:99
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/fairseq_dataset.py:65
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/round_robin_zip_datasets.py:93
Method
size
(self, index)
fairseq/data/concat_sentences_dataset.py:35
Method
size
(self, index)
fairseq/data/resampling_dataset.py:93
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/monolingual_dataset.py:210
Method
size
(self, index: int)
fairseq/data/multi_corpus_dataset.py:157
Method
size
(self, index)
fairseq/data/base_wrapper_dataset.py:35
Method
size
(self, index)
fairseq/data/prepend_token_dataset.py:37
Method
size
(self, index)
fairseq/data/indexed_dataset.py:304
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:85
Method
size
(self, index)
fairseq/data/transform_eos_dataset.py:103
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:279
Method
sizes
(self)
fairseq/benchmark/dummy_masked_lm.py:113
Method
sizes
(self)
fairseq/benchmark/dummy_mt.py:105
Method
sizes
(self)
fairseq/benchmark/dummy_lm.py:104
Method
sizes
(self)
fairseq/data/shorten_dataset.py:29
Method
sizes
(self)
fairseq/data/subsample_dataset.py:48
Method
sizes
(self)
fairseq/data/append_token_dataset.py:28
Method
sizes
(self)
fairseq/data/concat_sentences_dataset.py:29
Method
sizes
(self)
fairseq/data/resampling_dataset.py:85
Method
sizes
(self)
fairseq/data/token_block_dataset.py:117
Method
sizes
(self)
fairseq/data/bucket_pad_length_dataset.py:69
Method
sizes
(self)
fairseq/data/base_wrapper_dataset.py:29
Method
sizes
(self)
fairseq/data/list_dataset.py:22
Method
sizes
(self)
fairseq/data/prepend_token_dataset.py:28
Method
sizes
(self)
fairseq/data/concat_dataset.py:72
Method
sizes
(self)
fairseq/data/indexed_dataset.py:466
Method
sizes
(self)
fairseq/data/indexed_dataset.py:521
Method
sizes
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:96
Method
sizes
(self)
fairseq/data/multilingual/sampled_multi_dataset.py:333
Method
sizes
(self)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:107
Method
sizes
(self)
fairseq/data/audio/speech_to_text_dataset.py:382
Method
skip
Fast-forward the iterator by skipping *num_to_skip* elements.
fairseq/data/iterators.py:79
Method
slice_indices
(self)
fairseq/data/token_block_dataset.py:113
Method
smoothed_value
Smoothed value used for logging.
fairseq/logging/meters.py:51
Method
smoothed_value
(self)
fairseq/logging/meters.py:105
Method
smoothed_value
(self)
fairseq/logging/meters.py:158
Method
smoothed_value
(self)
fairseq/logging/meters.py:214
Function
softmax
(x, dim: int, onnx_trace: bool = False)
fairseq/utils.py:468
Method
source_dictionary
(self)
fairseq/benchmark/dummy_masked_lm.py:88
Method
source_dictionary
(self)
fairseq/benchmark/dummy_mt.py:80
Method
source_dictionary
(self)
fairseq/benchmark/dummy_lm.py:79
Method
source_dictionary
(self)
fairseq/tasks/speech_to_text.py:101
Method
source_dictionary
(self)
fairseq/tasks/multilingual_translation.py:428
Method
source_dictionary
(self)
fairseq/tasks/translation_multi_simple_epoch.py:267
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary`.
fairseq/tasks/denoising.py:267
Method
source_dictionary
(self)
fairseq/tasks/sentence_prediction.py:270
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary` (if applicable for this task).
fairseq/tasks/fairseq_task.py:572
Method
source_dictionary
Return the source :class:`~fairseq.data.Dictionary`.
fairseq/tasks/translation.py:440
Method
source_dictionary
(self)
fairseq/tasks/masked_lm.py:253
Method
source_dictionary
(self)
fairseq/tasks/multilingual_masked_lm.py:333
Method
source_dictionary
Return the :class:`~fairseq.data.Dictionary` for the language model.
fairseq/tasks/language_modeling.py:349
Method
source_dictionary
(self)
fairseq/tasks/audio_pretraining.py:168
Method
source_dictionary
(self)
fairseq/tasks/sentence_ranking.py:214
Function
spacy_tokenizer
()
fairseq/models/roberta/alignment_utils.py:111
Method
split_exists
(split, src, tgt, lang)
fairseq/tasks/semisupervised_translation.py:154
Function
split_paths
(paths: str)
fairseq/utils.py:60
Method
spm
(path)
fairseq/models/transformer.py:74
Method
spm
(path)
fairseq/models/transformer_lm.py:179
Function
state_dict
()
fairseq/logging/metrics.py:281
Method
state_dict
(self)
fairseq/quantization_utils.py:127
Method
state_dict
(self)
fairseq/logging/meters.py:86
Method
state_dict
(self)
fairseq/logging/meters.py:134
Method
state_dict
(self)
fairseq/logging/meters.py:190
Method
state_dict
(self)
fairseq/logging/meters.py:243
Method
state_dict
(self, *args, **kwargs)
fairseq/distributed/distributed_timeout_wrapper.py:70
Method
state_dict
Forward to the twice-wrapped module.
fairseq/distributed/module_proxy_wrapper.py:46
Method
state_dict
Return the LR scheduler state dict.
fairseq/optim/composite.py:103
Method
state_dict
Return the optimizer's state dict.
fairseq/optim/fairseq_optimizer.py:74
Method
state_dict
Return the optimizer's state dict.
fairseq/optim/fp16_optimizer.py:336
Method
state_dict
Return the LR scheduler state dict.
fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py:107
Method
state_dict
(self)
fairseq/optim/lr_scheduler/pass_through.py:27
Method
state_dict
(self)
fairseq/optim/lr_scheduler/manual_lr_scheduler.py:75
Method
state_dict
Return the LR scheduler state dict.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:28
Method
state_dict
(self)
fairseq/optim/lr_scheduler/fixed_schedule.py:44
Method
state_dict
Returns a dictionary containing a whole state of the iterator.
fairseq/data/iterators.py:137
Method
state_dict
(self)
fairseq/data/iterators.py:218
Method
state_dict
Returns a dictionary containing a whole state of the iterator.
fairseq/data/iterators.py:411
Method
state_dict
(self)
fairseq/tasks/fairseq_task.py:35
Method
state_dict
(self)
fairseq/tasks/fairseq_task.py:558
Method
step
( self, step: int, lprobs, scores: Optional[Tensor], prev_output_token
fairseq/search.py:109
Method
step
( self, step: int, lprobs: Tensor, scores: Tensor, prev_output_tokens:
fairseq/search.py:169
Method
step
A constrained step builds a large candidates list from the following: - the top 2 * {beam_size} items over the whole beam - f
fairseq/search.py:263
Method
step
( self, step: int, lprobs, scores, prev_output_tokens: Optional[Tensor
fairseq/search.py:536
Method
step
( self, step: int, lprobs, scores, prev_output_tokens: Optional[Tensor
fairseq/search.py:568
Method
step
( self, step: int, lprobs, scores, prev_output_tokens: Optional[Tensor
fairseq/search.py:676
Method
step
( self, step: int, lprobs, scores, prev_output_tokens: Optional[Tensor
fairseq/search.py:765
← previous
next →
2,801–2,900 of 3,098, ranked by callers