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
↓ 1 callers
Function
base_wav2vec_architecture
(args)
fairseq/models/wav2vec.py:438
↓ 1 callers
Function
bert_base_architecture
(args)
fairseq/models/masked_lm.py:298
↓ 1 callers
Method
binarize
(self, sentence: str)
fairseq/hub_utils.py:175
↓ 1 callers
Function
bleu_ltrim
left trim (remove pad)
fairseq/clib/libbleu/libbleu.cpp:29
↓ 1 callers
Function
bleu_rtrim
right trim remove (eos)
fairseq/clib/libbleu/libbleu.cpp:40
↓ 1 callers
Function
bleu_zero_init
fairseq/clib/libbleu/libbleu.cpp:101
↓ 1 callers
Method
bpe
(self, token)
fairseq/data/encoders/gpt2_bpe_utils.py:65
↓ 1 callers
Function
buffered_arange
(max)
fairseq/utils.py:187
↓ 1 callers
Method
buffered_future_mask
(self, tensor)
fairseq/models/transformer.py:472
↓ 1 callers
Method
buffered_future_mask
(self, tensor)
examples/speech_recognition/models/vggtransformer.py:686
↓ 1 callers
Function
buffered_read
(input, buffer_size)
interactive.py:23
↓ 1 callers
Function
buffered_read
(input, buffer_size)
fairseq_cli/interactive.py:23
↓ 1 callers
Method
build_criterion
(cls, args, task)
fairseq/criterions/composite_loss.py:35
↓ 1 callers
Method
build_dataset_for_inference
(self, sample_json)
examples/roberta/wsc/wsc_task.py:207
↓ 1 callers
Method
build_decoder
(cls, args, tgt_dict, embed_tokens)
fairseq/models/transformer.py:182
↓ 1 callers
Method
build_decoder
(cls, args, tgt_dict, embed_tokens)
fairseq/models/transformer_mb/transformer_mb.py:185
↓ 1 callers
Method
build_decoder
(cls, args, task)
examples/speech_recognition/models/vggtransformer.py:128
↓ 1 callers
Method
build_encoder
(cls, args, src_dict, embed_tokens)
fairseq/models/transformer.py:178
↓ 1 callers
Method
build_encoder
(cls, args, src_dict, embed_tokens)
fairseq/models/transformer_mb/transformer_mb.py:181
↓ 1 callers
Method
build_encoder
(cls, args, task)
examples/speech_recognition/models/vggtransformer.py:118
↓ 1 callers
Method
build_underlying_criterion
(args, task)
fairseq/criterions/composite_loss.py:26
↓ 1 callers
Function
bytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
fairseq/data/encoders/gpt2_bpe_utils.py:13
↓ 1 callers
Function
cached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
fairseq/file_utils.py:134
↓ 1 callers
Function
calc_mean_invstddev
(feature)
examples/speech_recognition/data/data_utils.py:9
↓ 1 callers
Function
cli_main
()
validate.py:88
↓ 1 callers
Function
cli_main
()
interactive.py:186
↓ 1 callers
Function
cli_main
()
train.py:287
↓ 1 callers
Function
cli_main
()
eval_lm.py:216
↓ 1 callers
Function
cli_main
()
generate.py:204
↓ 1 callers
Function
cli_main
()
preprocess.py:264
↓ 1 callers
Function
cli_main
()
fairseq_cli/interactive.py:186
↓ 1 callers
Function
cli_main
()
fairseq_cli/train.py:287
↓ 1 callers
Function
cli_main
()
fairseq_cli/eval_lm.py:216
↓ 1 callers
Function
cli_main
()
fairseq_cli/generate.py:204
↓ 1 callers
Function
cli_main
()
fairseq_cli/preprocess.py:264
↓ 1 callers
Function
cli_main
()
examples/speech_recognition/infer.py:235
↓ 1 callers
Method
clip_grad_norm
Clips gradient norm.
fairseq/optim/bmuf.py:84
↓ 1 callers
Method
clip_grad_norm
Clips gradient norm and updates dynamic loss scaler.
fairseq/optim/fp16_optimizer.py:172
↓ 1 callers
Function
collate
(samples, pad_idx, eos_idx)
fairseq/data/monolingual_dataset.py:12
↓ 1 callers
Method
collater
(self, samples)
fairseq/data/id_dataset.py:19
↓ 1 callers
Method
collater
Generate a mini-batch for this dataset. To convert this into a regular mini-batch we use the following logic: 1.
fairseq/data/multi_corpus_sampled_dataset.py:97
↓ 1 callers
Method
collater
(self, samples)
fairseq/data/audio/raw_audio_dataset.py:64
↓ 1 callers
Method
collater
Merge a list of samples to form a mini-batch. Args: samples (List[int]): sample indices to collate Returns:
examples/speech_recognition/data/asr_dataset.py:85
↓ 1 callers
Function
collect_filtered
Similar to :func:`filter` but collects filtered elements in ``filtered``. Args: function (callable): function that returns ``False``
fairseq/data/data_utils.py:108
↓ 1 callers
Method
compute_fixed_attention_subset
(self, word_index, tgt_len)
fairseq/modules/sparse_multihead_attention.py:60
↓ 1 callers
Method
compute_loss
(self, model, net_output, sample, reduce=True)
fairseq/criterions/label_smoothed_cross_entropy.py:68
↓ 1 callers
Method
compute_loss
(self, model, net_output, target, reduction, log_probs)
examples/speech_recognition/criterions/cross_entropy_acc.py:22
↓ 1 callers
Function
convert_state_dict_type
(state_dict, ttype=torch.FloatTensor)
fairseq/checkpoint_utils.py:207
↓ 1 callers
Method
copy_labels
(self)
scripts/wav2vec_featurize.py:171
↓ 1 callers
Function
copy_tensor
(src, dst)
fairseq/data/data_utils.py:32
↓ 1 callers
Function
decode
(l)
scripts/spm_decode.py:27
↓ 1 callers
Method
decode
(self, x: str)
fairseq/data/encoders/gpt2_bpe.py:42
↓ 1 callers
Function
decode_fn
(x)
interactive.py:114
↓ 1 callers
Function
decode_fn
(x)
fairseq_cli/interactive.py:114
↓ 1 callers
Function
distributed_main
(i, args, start_rank=0)
train.py:280
↓ 1 callers
Function
distributed_main
(i, args, start_rank=0)
fairseq_cli/train.py:280
↓ 1 callers
Function
dummy_dictionary
(vocab_size, prefix='token_')
tests/utils.py:20
↓ 1 callers
Function
encode
(l)
scripts/spm_encode.py:39
↓ 1 callers
Method
encode
(self, sentence: str)
fairseq/hub_utils.py:145
↓ 1 callers
Function
encode_fn
(x)
interactive.py:107
↓ 1 callers
Function
encode_fn
(x)
fairseq_cli/interactive.py:107
↓ 1 callers
Method
end_of_epoch
Returns whether the most recent epoch iterator has been exhausted
fairseq/data/iterators.py:185
↓ 1 callers
Function
eval_str_list
(x, type=float)
fairseq/options.py:59
↓ 1 callers
Function
every_n_checkpoints
(files, n)
scripts/rm_pt.py:37
↓ 1 callers
Method
extract_features
Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary wi
fairseq/models/fairseq_decoder.py:36
↓ 1 callers
Method
extract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/transformer.py:397
↓ 1 callers
Method
extract_features
(self, src_tokens, return_all_hiddens=False, **unused)
fairseq/models/roberta/model.py:289
↓ 1 callers
Method
extract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/transformer_mb/transformer_mb.py:441
↓ 1 callers
Method
fc1
(self, x)
fairseq/models/transformer_mb/transformer_mb_layer.py:264
↓ 1 callers
Method
fc1fc2
(self, x)
fairseq/models/transformer_mb/transformer_mb_layer.py:113
↓ 1 callers
Method
fc1fc2
(self, x)
fairseq/models/transformer_mb/transformer_mb_layer.py:272
↓ 1 callers
Method
fc2
(self, x)
fairseq/models/transformer_mb/transformer_mb_layer.py:268
↓ 1 callers
Function
find_token
(sentence, start_pos)
examples/roberta/wsc/wsc_utils.py:52
↓ 1 callers
Method
forward
( self, x: torch.Tensor )
fairseq/modules/highway.py:42
↓ 1 callers
Method
forward
(self, src_tokens, src_lengths)
fairseq/models/fconv_self_att.py:198
↓ 1 callers
Method
forward_decoder
(self, tokens, encoder_outs, temperature=1.)
fairseq/sequence_generator.py:542
↓ 1 callers
Method
forward_encoder
(self, encoder_input)
fairseq/sequence_generator.py:536
↓ 1 callers
Method
generate
(self, tokens: torch.LongTensor, beam: int = 5, verbose: bool = False, **kwargs)
fairseq/hub_utils.py:110
↓ 1 callers
Function
get_asr_dataset_from_json
Parse data json and create dataset. See scripts/asr_prep_json.py which pack json from raw files Json example: { "utts": {
examples/speech_recognition/tasks/speech_recognition.py:16
↓ 1 callers
Function
get_dataset_itr
(args, task)
examples/speech_recognition/infer.py:61
↓ 1 callers
Function
get_default_group
()
fairseq/distributed_utils.py:119
↓ 1 callers
Function
get_detokenizer
()
examples/roberta/wsc/wsc_utils.py:77
↓ 1 callers
Method
get_encoder_langtok
(self, src_lang, tgt_lang)
fairseq/tasks/multilingual_translation.py:158
↓ 1 callers
Function
get_examples
Extract paragraph and question-answer list from each json file
examples/roberta/preprocess_RACE.py:21
↓ 1 callers
Function
get_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
fairseq/file_utils.py:230
↓ 1 callers
Function
get_generation_parser
(interactive=False, default_task='translation')
fairseq/options.py:31
↓ 1 callers
Method
get_log_prob
Computes the log probabilities for all the words of the vocabulary, given a 2D tensor of hidden vectors.
fairseq/modules/adaptive_softmax.py:170
↓ 1 callers
Method
get_logging_output
(self, sample, target, lprobs, loss)
examples/speech_recognition/criterions/cross_entropy_acc.py:45
↓ 1 callers
Method
get_logits
(self, net_output)
fairseq/models/wav2vec.py:196
↓ 1 callers
Method
get_lr
(self)
fairseq/optim/fp16_optimizer.py:113
↓ 1 callers
Method
get_next_lr
(self, epoch)
fairseq/optim/lr_scheduler/polynomial_decay_schedule.py:40
↓ 1 callers
Method
get_next_lr
(self, epoch)
fairseq/optim/lr_scheduler/fixed_schedule.py:37
↓ 1 callers
Method
get_normalized_probs
(self, net_output, log_probs, sample=None)
examples/speech_recognition/models/vggtransformer.py:148
↓ 1 callers
Function
get_parser
()
score.py:18
↓ 1 callers
Function
get_parser
()
fairseq_cli/score.py:18
↓ 1 callers
Function
get_parser
()
scripts/read_binarized.py:12
↓ 1 callers
Function
get_parser
()
scripts/wav2vec_manifest.py:17
↓ 1 callers
Function
get_rank
()
fairseq/distributed_utils.py:111
↓ 1 callers
Function
get_spacy_nlp
()
examples/roberta/wsc/wsc_utils.py:84
↓ 1 callers
Method
get_src_tokens
correct_prediction: True if the net_output (src_tokens) should predict the correct target aggregate: True if the
tests/speech_recognition/asr_test_base.py:516
← previous
next →
501–600 of 2,038, ranked by callers