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
register_model
New model types can be added to fairseq with the :func:`register_model` function decorator. For example:: @register_model('lstm
fairseq/models/__init__.py:51
Function
register_model_arch_fn
(fn)
fairseq/models/__init__.py:107
Function
register_model_architecture
New model architectures can be added to fairseq with the :func:`register_model_architecture` function decorator. After registration, mode
fairseq/models/__init__.py:82
Function
register_model_cls
(cls)
fairseq/models/__init__.py:71
Function
register_task
New tasks can be added to fairseq with the :func:`~fairseq.tasks.register_task` function decorator. For example:: @register_tas
fairseq/tasks/__init__.py:20
Function
register_task_cls
(cls)
fairseq/tasks/__init__.py:42
Function
register_x
(name)
fairseq/registry.py:43
Function
register_x_cls
(cls)
fairseq/registry.py:45
Method
reorder_encoder_out
(self, encoder_out, new_order)
fairseq/models/fconv.py:270
Method
reorder_encoder_out
Reorder encoder output according to *new_order*. Args: encoder_out: output from the ``forward()`` method new
fairseq/models/lightconv.py:252
Method
reorder_encoder_out
(self, encoder_out, new_order)
fairseq/models/fconv_self_att.py:252
Method
reorder_encoder_out
Reorder encoder output according to `new_order`. Args: encoder_out: output from the ``forward()`` method new
fairseq/models/fairseq_encoder.py:26
Method
reorder_encoder_out
Reorder encoder output according to *new_order*. Args: encoder_out: output from the ``forward()`` method new
fairseq/models/transformer.py:266
Method
reorder_encoder_out
Reorder encoder output according to new_order.
fairseq/models/composite_encoder.py:43
Method
reorder_encoder_out
(self, encoder_out, new_order)
fairseq/models/lstm.py:260
Method
reorder_encoder_out
Reorder encoder output according to *new_order*. Args: encoder_out: output from the ``forward()`` method new
fairseq/models/transformer_mb/transformer_mb.py:288
Method
reorder_encoder_out
(self, encoder_out, new_order)
tests/utils.py:174
Method
reorder_encoder_out
(self, encoder_out, new_order)
examples/speech_recognition/models/vggtransformer.py:540
Method
reorder_incremental_state
(self, incremental_state, new_order)
fairseq/modules/dynamic_convolution.py:202
Method
reorder_incremental_state
(self, incremental_state, new_order)
fairseq/modules/lightweight_convolution.py:218
Method
reorder_incremental_state
(self, incremental_state, new_order)
fairseq/modules/linearized_convolution.py:66
Method
reorder_incremental_state
Reorder buffered internal state (for incremental generation).
fairseq/modules/multihead_attention.py:323
Method
reorder_incremental_state
(self, incremental_state, new_order)
fairseq/models/fconv.py:490
Method
reorder_incremental_state
(self, incremental_state, new_order)
fairseq/models/lstm.py:449
Method
reorder_state
(state)
fairseq/models/lstm.py:455
Method
replaced_consumer
(word, idx)
fairseq/binarizer.py:30
Method
replicate_first_beam
(tensor, mask)
fairseq/sequence_generator.py:324
Function
resolve_max_positions
Resolve max position constraints from multiple sources.
fairseq/utils.py:238
Method
result_string
(self, order=4)
fairseq/bleu.py:139
Function
roberta_base_architecture
(args)
fairseq/models/roberta/model.py:321
Function
roberta_large_architecture
(args)
fairseq/models/roberta/model.py:326
Function
s3_request
Wrapper function for s3 requests in order to create more helpful error messages.
fairseq/file_utils.py:177
Function
save_checkpoint
(args, trainer, epoch_itr, val_loss)
fairseq/checkpoint_utils.py:21
Method
save_output
()
fairseq/models/fconv_self_att.py:374
Function
save_state
( filename, args, model_state_dict, criterion, optimizer, lr_scheduler, num_updates, optim_history=Non
fairseq/checkpoint_utils.py:221
Method
score
(self, order=4)
fairseq/bleu.py:55
Function
sequence_generator_setup
()
tests/utils.py:53
Method
setUp
(self)
tests/test_label_smoothing.py:20
Method
setUp
(self)
tests/test_sequence_generator.py:41
Method
setUp
(self)
tests/test_sequence_generator.py:143
Method
setUp
(self)
tests/test_sequence_generator.py:222
Method
setUp
(self)
tests/test_concat_dataset.py:15
Method
setUp
(self)
tests/test_multi_corpus_sampled_dataset.py:17
Method
setUp
(self)
tests/test_backtranslation_dataset.py:22
Method
setUp
(self)
tests/test_train.py:54
Method
setUp
(self)
tests/speech_recognition/test_vggtransformer.py:26
Method
setUp
(self)
tests/speech_recognition/test_vggtransformer.py:45
Method
setUp
(self)
tests/speech_recognition/test_vggtransformer.py:64
Method
setUp
(self)
tests/speech_recognition/test_vggtransformer.py:83
Method
setUp
(self)
tests/speech_recognition/test_cross_entropy.py:14
Method
setUp
(self)
tests/speech_recognition/asr_test_base.py:248
Method
setUp
(self)
tests/speech_recognition/asr_test_base.py:285
Method
setUp
(self)
tests/speech_recognition/asr_test_base.py:349
Method
setUp
(self)
tests/speech_recognition/asr_test_base.py:452
Method
setUp
(self)
tests/speech_recognition/asr_test_base.py:511
Method
setUpClass
(cls)
tests/speech_recognition/asr_test_base.py:236
Method
setUpClass
(cls)
tests/speech_recognition/asr_test_base.py:261
Method
setUpClass
(cls)
tests/speech_recognition/asr_test_base.py:323
Method
setUpClass
(cls)
tests/speech_recognition/asr_test_base.py:430
Method
setUpClass
(cls)
tests/speech_recognition/asr_test_base.py:500
Method
setUpInput
(self, input=None)
tests/speech_recognition/asr_test_base.py:282
Method
setUpInput
(self, input=None)
tests/speech_recognition/asr_test_base.py:343
Method
setUpInput
(self, input=None)
tests/speech_recognition/asr_test_base.py:442
Method
setUpModel
(self, model_cls, extra_args_setters=None)
tests/speech_recognition/asr_test_base.py:266
Method
setUpModel
(self, model_cls, extra_args_setters=None)
tests/speech_recognition/asr_test_base.py:328
Method
set_backtranslation_fn
(self, backtranslation_fn)
fairseq/data/backtranslation_dataset.py:107
Method
set_beam_size
(self, beam_size)
fairseq/modules/beamable_mm.py:46
Method
set_epoch
(self, epoch)
fairseq/data/nested_dictionary_dataset.py:113
Method
set_epoch
(self, epoch)
fairseq/data/fairseq_dataset.py:54
Method
set_epoch
(self, epoch)
fairseq/data/base_wrapper_dataset.py:49
Method
set_epoch
(self, epoch, **unused)
fairseq/data/mask_tokens_dataset.py:94
Function
set_incremental_state
Helper for setting incremental state for an nn.Module.
fairseq/utils.py:84
Method
set_lr
Set the learning rate.
fairseq/optim/fairseq_optimizer.py:49
Method
set_lr
(self, lr)
fairseq/optim/fp16_optimizer.py:276
Function
set_trace
()
fairseq/pdb.py:45
Method
setupInput
(self)
tests/speech_recognition/asr_test_base.py:245
Function
setup_registry
( registry_name: str, base_class=None, default=None, )
fairseq/registry.py:12
Function
setup_task
(args, **kwargs)
fairseq/tasks/__init__.py:16
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/multilingual_translation.py:118
Method
setup_task
Setup the task.
fairseq/tasks/legacy_masked_lm.py:66
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/sentence_prediction.py:72
Method
setup_task
Setup the task (e.g., load dictionaries). Args: args (argparse.Namespace): parsed command-line arguments
fairseq/tasks/fairseq_task.py:57
Method
setup_task
Setup the task (e.g., load dictionaries). Args: args (argparse.Namespace): parsed command-line arguments
fairseq/tasks/translation.py:134
Method
setup_task
Setup the task (e.g., load dictionaries). Args: args (argparse.Namespace): parsed command-line arguments
fairseq/tasks/language_modeling.py:94
Method
setup_task
Setup the task.
fairseq/tasks/cross_lingual_lm.py:95
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/semisupervised_translation.py:130
Method
setup_task
Setup the task (e.g., load dictionaries). Args: args (argparse.Namespace): parsed command-line arguments
fairseq/tasks/audio_pretraining.py:33
Method
setup_task
(cls, args, **kwargs)
fairseq/tasks/sentence_ranking.py:70
Method
setup_task
(cls, args, **kwargs)
examples/roberta/commonsense_qa/commonsense_qa_task.py:60
Method
setup_task
(cls, args, **kwargs)
examples/roberta/wsc/wsc_task.py:71
Method
shuffle_batches
(batches, seed)
fairseq/data/iterators.py:219
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:94
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/language_pair_dataset.py:188
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:35
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:81
Method
size
(self, index)
fairseq/data/concat_sentences_dataset.py:35
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:180
Method
size
(self, index)
fairseq/data/base_wrapper_dataset.py:36
Method
size
(self, index)
fairseq/data/prepend_token_dataset.py:38
Method
size
(self, index)
fairseq/data/indexed_dataset.py:277
← previous
next →
1,701–1,800 of 2,038, ranked by callers