MCPcopy Create free account

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

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

Methodforward
(self, src_tokens, segment_labels=None, **kwargs)
fairseq/models/masked_lm.py:102
Methodforward
Forward pass for Masked LM encoder. This first computes the token embedding using the token embedding matrix, position embeddings (if
fairseq/models/masked_lm.py:193
Methodforward
(self, source)
fairseq/models/wav2vec.py:172
Methodforward
(self, x)
fairseq/models/wav2vec.py:216
Methodforward
(self, input)
fairseq/models/wav2vec.py:226
Methodforward
(self, input)
fairseq/models/wav2vec.py:237
Methodforward
(self, x)
fairseq/models/wav2vec.py:280
Methodforward
(self, x)
fairseq/models/wav2vec.py:307
Methodforward
(self, x)
fairseq/models/wav2vec.py:349
Methodforward
(self, x, y)
fairseq/models/wav2vec.py:403
Methodforward
Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths
fairseq/models/fairseq_encoder.py:16
Methodforward
Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths
fairseq/models/transformer.py:225
Methodforward
Args: prev_output_tokens (LongTensor): previous decoder outputs of shape `(batch, tgt_len)`, for teacher forcing
fairseq/models/transformer.py:378
Methodforward
Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths
fairseq/models/composite_encoder.py:26
Methodforward
(self, src_tokens, src_lengths)
fairseq/models/lstm.py:208
Methodforward
(self, input, source_hids, encoder_padding_mask)
fairseq/models/lstm.py:282
Methodforward
(self, prev_output_tokens, encoder_out, incremental_state=None)
fairseq/models/lstm.py:358
Methodforward
(self, src_tokens, features_only=False, return_all_hiddens=False, classification_head_name=None, **kwargs)
fairseq/models/roberta/model.py:95
Methodforward
(self, features, **kwargs)
fairseq/models/roberta/model.py:204
Methodforward
(self, features, **kwargs)
fairseq/models/roberta/model.py:225
Methodforward
Args: src_tokens (LongTensor): input tokens of shape `(batch, src_len)` features_only (bool, optional): skip LM head
fairseq/models/roberta/model.py:268
Methodforward
Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths
fairseq/models/transformer_mb/transformer_mb.py:243
Methodforward
Args: prev_output_tokens (LongTensor): previous decoder outputs of shape `(batch, tgt_len)`, for teacher forcing
fairseq/models/transformer_mb/transformer_mb.py:422
Methodforward
Args: x (Tensor): input to the layer of shape `(seq_len, batch, embed_dim)` encoder_padding_mask (ByteTensor): binary
fairseq/models/transformer_mb/transformer_mb_layer.py:122
Methodforward
Args: x (Tensor): input to the layer of shape `(seq_len, batch, embed_dim)` encoder_padding_mask (ByteTensor): binary
fairseq/models/transformer_mb/transformer_mb_layer.py:281
Methodforward
(self, x)
scripts/wav2vec_featurize.py:43
Methodforward
(self, src_tokens, src_lengths=None, **kwargs)
tests/utils.py:171
Methodforward
(self, prev_output_tokens, encoder_out=None, incremental_state=None)
tests/utils.py:185
Methodforward
(self, input)
tests/test_average_checkpoints.py:33
Methodforward
(self, model, sample, reduce=True)
examples/roberta/wsc/wsc_criterion.py:42
Methodforward
Computes the cross entropy with accuracy metric for the given sample. This is similar to CrossEntropyCriterion in fairseq, but also c
examples/speech_recognition/criterions/cross_entropy_acc.py:68
Methodforward
src_tokens: padded tensor (B, T, C * feat) src_lengths: tensor of original lengths of input utterances (B,)
examples/speech_recognition/models/vggtransformer.py:319
Methodforward
Args: prev_output_tokens (LongTensor): previous decoder outputs of shape `(batch, tgt_len)`, for input feeding/te
examples/speech_recognition/models/vggtransformer.py:615
Methodforward_backward
(model, samples, logging_output_key, weight)
fairseq/tasks/semisupervised_translation.py:335
Methodfreeze_module_params
(m)
fairseq/modules/transformer_sentence_encoder.py:155
Methodfreeze_module_params
(m)
fairseq/modules/sparse_transformer_sentence_encoder.py:77
Functionfrom_pretrained
( model_name_or_path, checkpoint_file='model.pt', data_name_or_path='.', archive_map=None,
fairseq/hub_utils.py:18
Methodfrom_pretrained
Load a :class:`~fairseq.models.FairseqModel` from a pre-trained model file. Downloads and caches the pre-trained model file if needed
fairseq/models/fairseq_model.py:144
Methodfrom_pretrained
(cls, model_name_or_path, checkpoint_file='model.pt', data_name_or_path='.', **kwargs)
fairseq/models/roberta/model.py:130
Methodgather_target_probs
(probs, target)
fairseq/sequence_scorer.py:40
Functiongelu
(x: torch.Tensor)
fairseq/modules/gelu.py:21
Functiongelu_accurate
(x)
fairseq/modules/gelu.py:15
Functionget_activation_fn
Returns the activation function corresponding to `activation`
fairseq/utils.py:318
Functionget_available_activation_fns
()
fairseq/utils.py:337
Methodget_decoder
(lang)
fairseq/models/multilingual_transformer.py:142
Methodget_dummy_batch
Return a dummy batch with a given number of tokens.
fairseq/data/audio/raw_audio_dataset.py:93
Methodget_encoder
(lang)
fairseq/models/multilingual_transformer.py:131
Functionget_eval_lm_parser
(default_task='language_modeling')
fairseq/options.py:44
Functionget_file_extension
(path, dot=True, lower=True)
fairseq/file_utils.py:315
Methodget_hypo
()
fairseq/sequence_generator.py:250
Methodget_ids
(dictionary)
tests/test_dictionary.py:41
Functionget_incremental_state
Helper for getting incremental state for an nn.Module.
fairseq/utils.py:76
Functionget_interactive_generation_parser
(default_task='translation')
fairseq/options.py:40
Methodget_logits
(self, net_output)
tests/speech_recognition/asr_test_base.py:481
Methodget_lprob_y
(encoder_out, prev_output_tokens_k)
fairseq/tasks/translation_moe.py:123
Methodget_lprob_yz
(winners=None)
fairseq/tasks/translation_moe.py:129
Methodget_lprobs
(tokens, mask)
examples/roberta/wsc/wsc_task.py:229
Methodget_lprobs
(tokens, mask)
examples/roberta/wsc/wsc_criterion.py:49
Methodget_lr
Return the current learning rate.
fairseq/optim/fairseq_optimizer.py:45
Methodget_lr
(self)
fairseq/optim/fp16_optimizer.py:273
Methodget_masked_input
(tokens, mask)
examples/roberta/wsc/wsc_task.py:224
Methodget_masked_input
(tokens, mask)
examples/roberta/wsc/wsc_criterion.py:44
Methodget_normalized_probs
Get normalized probabilities (or log probs) from a net's output.
fairseq/models/fairseq_model.py:41
Methodget_normalized_probs
Get normalized probabilities (or log probs) from a net's output.
fairseq/models/fairseq_model.py:424
Functionget_offsets
(input_file, num_workers)
preprocess.py:260
Functionget_offsets
(input_file, num_workers)
fairseq_cli/preprocess.py:260
Methodget_one_no_padding
(idx)
tests/test_label_smoothing.py:64
Methodget_path
(type, split)
fairseq/tasks/sentence_prediction.py:100
Methodget_path
(type, split)
fairseq/tasks/sentence_ranking.py:86
Functionget_perplexity
(loss)
fairseq/utils.py:306
Functionget_preprocessing_parser
(default_task='translation')
fairseq/options.py:15
Methodget_targets
Get targets from either the sample or the net's output.
fairseq/models/fairseq_model.py:37
Functionget_task
(name)
fairseq/tasks/__init__.py:75
Functionget_training_parser
(default_task='translation')
fairseq/options.py:21
Functionget_validation_parser
(default_task=None)
fairseq/options.py:51
Methodgetarg
(name, default)
fairseq/hub_utils.py:126
Methodgrad_denom
Compute the gradient denominator for a set of sample sizes.
fairseq/criterions/fairseq_criterion.py:42
Methodgrad_denom
(self, sample_sizes, criterion)
fairseq/tasks/multilingual_translation.py:322
Methodhook
(a, b, output)
fairseq/models/fconv_self_att.py:375
Methodhub_models
(cls)
fairseq/models/fconv_self_att.py:34
Methodhub_models
(cls)
fairseq/models/transformer.py:52
Methodhub_models
(cls)
fairseq/models/transformer_lm.py:28
Methodin_proj
(self)
fairseq/modules/dynamic_convolution.py:71
Methodindexed_dataset
(path, dictionary)
fairseq/tasks/semisupervised_translation.py:152
Functioninfer_dataset_impl
(path)
fairseq/data/indexed_dataset.py:28
Functioninfer_init_method
(args)
fairseq/distributed_utils.py:22
Functioninfer_language_pair
Infer language pair from filename: <split>.<lang1>-<lang2>.(...).idx
fairseq/data/data_utils.py:17
Methodinference_step
(self, generator, models, sample, prefix_tokens=None, expert=None)
fairseq/tasks/translation_moe.py:194
Methodinference_step
(self, generator, models, sample, prefix_tokens=None)
fairseq/tasks/multilingual_translation.py:300
Methodinference_step
(self, generator, models, sample, prefix_tokens=None)
fairseq/tasks/language_modeling.py:203
Functioninit_bert_params
Initialize the weights specific to the BERT Model. This overrides the default initializations depending on the specified arguments. 1
fairseq/modules/transformer_sentence_encoder.py:19
Methodinit_logging_output
(self, sample)
fairseq/tasks/multilingual_translation.py:310
Methodinit_weights
(m)
fairseq/modules/adaptive_softmax.py:83
Methodinit_weights
(m)
fairseq/modules/adaptive_input.py:47
Methodinitializer
(self)
examples/roberta/multiprocessing_bpe_encoder.py:94
Methodinput_fnames
(self)
scripts/wav2vec_featurize.py:179
Methodinput_path
(self)
scripts/wav2vec_featurize.py:154
Methodis_beginning_of_word
(self, x: str)
fairseq/data/encoders/gpt2_bpe.py:45
Methodis_beginning_of_word
(i)
fairseq/tasks/masked_lm.py:113
Methodis_finished
Check whether we've finished generation for a given sentence, by comparing the worst score among finalized hypotheses to the
fairseq/sequence_generator.py:186
← previousnext →1,401–1,500 of 2,038, ranked by callers