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
process_predictions
(args, hypos, sp, tgt_dict, target_tokens, res_files, speaker, id)
examples/speech_recognition/infer.py:75
↓ 1 callers
Function
read_audio
Load an audio file and return PCM along with the sample rate
scripts/wav2vec_featurize.py:21
↓ 1 callers
Method
read_data
(self, path, dictionary)
fairseq/data/indexed_dataset.py:243
↓ 1 callers
Method
read_index
(self, path)
fairseq/data/indexed_dataset.py:121
↓ 1 callers
Method
remove_bpe
(self, sentence: str)
fairseq/hub_utils.py:170
↓ 1 callers
Method
reorder_incremental_state
(self, new_order)
fairseq/sequence_generator.py:603
↓ 1 callers
Method
reorder_incremental_state
Reorder incremental state. This should be called when the order of the input has changed from the previous time step. A typical use c
fairseq/models/fairseq_incremental_decoder.py:60
↓ 1 callers
Function
replace_unk
(hypo_str, src_str, alignment, align_dict, unk)
fairseq/utils.py:143
↓ 1 callers
Method
resample
(self, x, factor)
fairseq/data/audio/raw_audio_dataset.py:58
↓ 1 callers
Method
reset
(self)
fairseq/meters.py:14
↓ 1 callers
Method
reset
(self, init=0)
fairseq/meters.py:32
↓ 1 callers
Method
reset
(self)
fairseq/meters.py:64
↓ 1 callers
Method
reset
(self, one_init=False)
fairseq/bleu.py:45
↓ 1 callers
Method
reset
(self, one_init=False)
fairseq/bleu.py:81
↓ 1 callers
Method
reset
(self, one_init=False)
fairseq/bleu.py:179
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/dynamic_convolution.py:74
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/lightweight_convolution.py:54
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/lightweight_convolution.py:125
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/highway.py:30
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/character_token_embedder.py:89
↓ 1 callers
Method
reset_parameters
(self)
fairseq/modules/multihead_attention.py:78
↓ 1 callers
Method
result_string
(self, order=4)
fairseq/bleu.py:58
↓ 1 callers
Method
rouge_l_recall_score
(self)
fairseq/bleu.py:131
↓ 1 callers
Function
s3_etag
Check ETag on S3 object.
fairseq/file_utils.py:198
↓ 1 callers
Function
s3_get
Pull a file directly from S3.
fairseq/file_utils.py:208
↓ 1 callers
Method
sample
(self, sentence: str, beam: int = 1, verbose: bool = False, **kwargs)
fairseq/hub_utils.py:105
↓ 1 callers
Method
sample_negatives
(self, y)
fairseq/models/wav2vec.py:374
↓ 1 callers
Method
score
(self, order=4)
fairseq/bleu.py:95
↓ 1 callers
Method
score
(self, order=4)
fairseq/bleu.py:189
↓ 1 callers
Method
score
(self, order=4)
fairseq/bleu.py:319
↓ 1 callers
Method
self_attn
(self, query, key, value, **kwargs)
fairseq/models/transformer_mb/transformer_mb_layer.py:256
↓ 1 callers
Method
sentence_accuracy
(self)
fairseq/bleu.py:115
↓ 1 callers
Method
setUpArgs
(self)
tests/speech_recognition/asr_test_base.py:505
↓ 1 callers
Method
setUpDecoder
(self, decoder)
tests/speech_recognition/asr_test_base.py:435
↓ 1 callers
Method
setUpPrevOutputTokens
(self, tokens=None)
tests/speech_recognition/asr_test_base.py:445
↓ 1 callers
Method
set_beam_size
Sets the beam size in the decoder and all children.
fairseq/models/fairseq_incremental_decoder.py:77
↓ 1 callers
Function
set_defaults
Helper to set default arguments based on *add_args*.
fairseq/registry.py:65
↓ 1 callers
Method
set_epoch
(self, epoch)
fairseq/data/list_dataset.py:28
↓ 1 callers
Method
set_lr
(self, lr)
fairseq/optim/fp16_optimizer.py:116
↓ 1 callers
Method
set_num_updates
Set the number of parameters updates.
fairseq/optim/bmuf.py:134
↓ 1 callers
Method
set_src_lengths
(self, src_lengths)
fairseq/search.py:50
↓ 1 callers
Method
set_vocab
(self, vocab, max_char_len)
fairseq/modules/character_token_embedder.py:63
↓ 1 callers
Method
setup_task
Setup the task (e.g., load dictionaries).
examples/speech_recognition/tasks/speech_recognition.py:86
↓ 1 callers
Method
size
Return an example's size as a float or tuple.
fairseq/data/concat_dataset.py:57
↓ 1 callers
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/audio/raw_audio_dataset.py:111
↓ 1 callers
Method
slice
embedding is a (T, B, D) tensor padding_mask is a (B, T) tensor or None attn_mask is a (T, T) tensor or None
examples/speech_recognition/models/vggtransformer.py:474
↓ 1 callers
Function
spacy_nlp
()
fairseq/models/roberta/alignment_utils.py:98
↓ 1 callers
Method
start_server
(self)
fairseq/data/plasma_utils.py:41
↓ 1 callers
Method
state_dict
Return the optimizer's state dict.
fairseq/optim/fp16_optimizer.py:119
↓ 1 callers
Method
state_dict
Return the optimizer's state dict.
fairseq/optim/fp16_optimizer.py:279
↓ 1 callers
Method
step
Performs a single optimization step.
fairseq/optim/fp16_optimizer.py:192
↓ 1 callers
Method
step
Performs a single optimization step.
fairseq/optim/fp16_optimizer.py:365
↓ 1 callers
Function
suppress_output
Suppress printing on the current device. Force printing with `force=True`.
fairseq/distributed_utils.py:98
↓ 1 callers
Method
tensorEqual
(self, t1, t2)
tests/test_sequence_generator.py:367
↓ 1 callers
Function
train
Train the model for one epoch.
train.py:101
↓ 1 callers
Function
train
Train the model for one epoch.
fairseq_cli/train.py:101
↓ 1 callers
Method
update_step
Task level update when number of update increases. This is called after optimization step and learning rate update of each step
fairseq/tasks/fairseq_task.py:246
↓ 1 callers
Function
url_to_filename
Convert `url` into a hashed filename in a repeatable way. If `etag` is specified, append its hash to the URL's, delimited by a period.
fairseq/file_utils.py:90
↓ 1 callers
Function
valid
(line)
scripts/spm_encode.py:48
↓ 1 callers
Method
validate_transformer_config
(self, transformer_config)
examples/speech_recognition/models/vggtransformer.py:391
↓ 1 callers
Method
word_accuracy
(self)
fairseq/bleu.py:108
↓ 1 callers
Method
write_features
(self)
scripts/wav2vec_featurize.py:185
↓ 1 callers
Method
writer
(cls, path, dtype)
fairseq/data/indexed_dataset.py:356
↓ 1 callers
Method
zero_grad
Clears the gradients of all optimized parameters.
fairseq/optim/fp16_optimizer.py:206
Function
ConvTBC
Weight-normalized Conv1d layer
fairseq/models/fconv.py:592
Function
ConvTBC
Weight-normalized Conv1d layer
fairseq/models/fconv_self_att.py:520
Function
DistributedFairseqModel
Wrap a *model* to support distributed data parallel training. This is similar to the built-in DistributedDataParallel, but allows additi
fairseq/models/distributed_fairseq_model.py:14
Method
__call__
(self, x)
scripts/wav2vec_featurize.py:85
Method
__contains__
(self, sym)
fairseq/data/dictionary.py:53
Method
__del__
(self)
fairseq/criterions/sentence_ranking.py:26
Method
__del__
(self)
fairseq/data/indexed_dataset.py:144
Method
__del__
(self)
fairseq/data/indexed_dataset.py:268
Method
__del__
(self)
fairseq/data/indexed_dataset.py:422
Method
__del__
(self)
fairseq/data/indexed_dataset.py:464
Method
__del__
(self)
fairseq/data/plasma_utils.py:81
Method
__del__
(self)
examples/roberta/wsc/wsc_criterion.py:28
Method
__enter__
(self)
fairseq/progress_bar.py:82
Method
__enter__
(self)
fairseq/data/indexed_dataset.py:358
Method
__eq__
(self, other)
fairseq/data/dictionary.py:41
Method
__exit__
(self, *exc)
fairseq/progress_bar.py:85
Method
__exit__
(self, *exc)
fairseq/progress_bar.py:266
Method
__exit__
(self, exc_type, exc_val, exc_tb)
fairseq/data/indexed_dataset.py:392
Method
__getattr__
(self, name)
fairseq/models/distributed_fairseq_model.py:60
Method
__getitem__
(self, index)
fairseq/data/nested_dictionary_dataset.py:64
Method
__getitem__
(self, index)
fairseq/data/language_pair_dataset.py:122
Method
__getitem__
(self, index)
fairseq/data/fairseq_dataset.py:13
Method
__getitem__
(self, idx)
fairseq/data/dictionary.py:44
Method
__getitem__
(self, i)
fairseq/data/dictionary.py:322
Method
__getitem__
(self, index)
fairseq/data/id_dataset.py:13
Method
__getitem__
(self, index)
fairseq/data/raw_label_dataset.py:17
Method
__getitem__
(self, index)
fairseq/data/round_robin_zip_datasets.py:47
Method
__getitem__
(self, index)
fairseq/data/truncate_dataset.py:19
Method
__getitem__
(self, index)
fairseq/data/num_samples_dataset.py:11
Method
__getitem__
(self, index)
fairseq/data/concat_sentences_dataset.py:19
Method
__getitem__
(self, index)
fairseq/data/strip_token_dataset.py:15
Method
__getitem__
(self, index)
fairseq/data/monolingual_dataset.py:78
Method
__getitem__
(self, index)
fairseq/data/token_block_dataset.py:154
Method
__getitem__
(self, idx)
fairseq/data/offset_tokens_dataset.py:15
Method
__getitem__
(self, index)
fairseq/data/base_wrapper_dataset.py:17
Method
__getitem__
(self, idx)
fairseq/data/prepend_token_dataset.py:22
← previous
next →
701–800 of 2,038, ranked by callers