MCPcopy Create free account

hub / github.com/Sally-SH/VSP-LLM / functions

Functions6,051 in github.com/Sally-SH/VSP-LLM

↓ 675 callersMethodappend
(self, value)
fairseq/examples/speech_to_text/simultaneous_translation/agents/fairseq_simul_st_agent.py:99
↓ 520 callersMethodsize
(self, index)
fairseq/fairseq/data/list_dataset.py:28
↓ 363 callersMethodinfo
(self)
fairseq/examples/speech_to_text/simultaneous_translation/agents/fairseq_simul_st_agent.py:107
↓ 191 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
fairseq/examples/speech_recognition/data/asr_dataset.py:111
↓ 170 callersMethodpad
Helper to get index of pad symbol
fairseq/fairseq/data/dictionary.py:193
↓ 156 callersMethodeos
Helper to get index of end-of-sentence symbol
fairseq/fairseq/data/dictionary.py:197
↓ 150 callersMethodexists
(path: str)
fairseq/fairseq/file_io.py:85
↓ 113 callersMethodwrite
(self, data)
fairseq/examples/wav2vec/wav2vec_featurize.py:102
↓ 106 callersFunction__Pyx_AddTraceback
fairseq/fairseq/data/token_block_utils_fast.cpp:31114
↓ 98 callersFunction__Pyx_AddTraceback
fairseq/fairseq/data/data_utils_fast.cpp:29340
↓ 85 callersMethodload
Loads the dictionary from a text file with the format: ``` <symbol0> <count0> <symbol1> <count1> ... ```
fairseq/fairseq/data/dictionary.py:206
↓ 76 callersMethodadd_symbol
Adds a word to the dictionary
fairseq/fairseq/data/dictionary.py:115
↓ 72 callersMethodcuda
(self)
fairseq/fairseq/sequence_generator.py:118
↓ 71 callersMethodarray
Fetch a read only view of an np.array, stored in plasma.
fairseq/fairseq/data/plasma_utils.py:139
↓ 70 callersMethodlog
Log intermediate stats according to log_interval.
fairseq/fairseq/logging/progress_bar.py:145
↓ 68 callersMethodadd
(self, ref, pred)
fairseq/fairseq/scoring/bleu.py:107
↓ 66 callersMethodindex
Returns the index of the specified symbol
fairseq/fairseq/data/dictionary.py:58
↓ 65 callersMethodwrite
(self, sizes)
fairseq/fairseq/data/indexed_dataset.py:408
↓ 58 callersFunctioncreate_dummy_data
(data_dir, num_examples=100, maxlen=20, alignment=False)
fairseq/tests/utils.py:162
↓ 51 callersFunctiongenerate_main
(data_dir, extra_flags=None, path=None)
fairseq/tests/utils.py:388
↓ 49 callersMethodunk
Helper to get index of unk symbol
fairseq/fairseq/data/dictionary.py:201
↓ 48 callersFunctiontrain_translation_model
( data_dir, arch, extra_flags=None, task="translation", run_validation=False, lang_fla
fairseq/tests/utils.py:314
↓ 47 callersFunctionLayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
fairseq/fairseq/modules/layer_norm.py:30
↓ 43 callersFunctionpreprocess_translation_data
(data_dir, extra_flags=None)
fairseq/tests/utils.py:224
↓ 40 callersFunctionCYTHON_UNUSED_VAR
fairseq/fairseq/data/token_block_utils_fast.cpp:470
↓ 39 callersMethodclose
(self)
fairseq/fairseq/nan_detector.py:106
↓ 39 callersMethodsize
(self, index)
src/hubert_dataset.py:517
↓ 38 callersFunctionCYTHON_UNUSED_VAR
fairseq/fairseq/data/data_utils_fast.cpp:470
↓ 38 callersMethodencoder
(self)
fairseq/fairseq/models/fairseq_model.py:432
↓ 37 callersMethodbos
Helper to get index of beginning-of-sentence symbol
fairseq/fairseq/data/dictionary.py:189
↓ 37 callersMethodupdate
(self, val)
fairseq/fairseq/logging/meters.py:122
↓ 36 callersMethodstring
Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape <unk> words.
fairseq/fairseq/data/dictionary.py:65
↓ 34 callersFunction__Pyx_Raise
fairseq/fairseq/data/token_block_utils_fast.cpp:26449
↓ 34 callersMethodencode_line
( self, line, line_tokenizer=tokenize_line, add_if_not_exist=True, con
fairseq/fairseq/data/dictionary.py:294
↓ 33 callersMethodassertHypoTokens
(self, hypo, tokens)
fairseq/tests/test_sequence_generator.py:168
↓ 32 callersFunctionChoiceEnum
return the Enum class used to enforce list of choices
fairseq/fairseq/dataclass/constants.py:32
↓ 31 callersFunction__Pyx_Raise
fairseq/fairseq/data/data_utils_fast.cpp:24840
↓ 31 callersMethodcollate_tokens
Convert a list of 1d tensors into a padded 2d tensor.
src/vsp_llm_dataset.py:550
↓ 31 callersMethoddecoder
(self)
fairseq/fairseq/models/fairseq_model.py:436
↓ 30 callersFunctionconvert_namespace_to_omegaconf
Convert a flat argparse.Namespace to a structured DictConfig.
fairseq/fairseq/dataclass/utils.py:344
↓ 30 callersMethodcopy
(src_path: str, dst_path: str, overwrite: bool = False)
fairseq/fairseq/file_io.py:71
↓ 29 callersMethodassertHypoScore
(self, hypo, pos_probs, normalized=True, lenpen=1.0)
fairseq/tests/test_sequence_generator.py:171
↓ 28 callersMethodrun
(self)
fairseq/fairseq/data/iterators.py:561
↓ 28 callersMethodsave
Stores dictionary into a text file
fairseq/fairseq/data/dictionary.py:278
↓ 28 callersMethodsize
(self, index: int)
fairseq/examples/laser/laser_src/multitask_data_utils.py:134
↓ 27 callersFunction__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
fairseq/fairseq/data/token_block_utils_fast.cpp:28778
↓ 27 callersMethodlog
(self, *args, **kwargs)
fairseq/examples/speech_recognition/new/infer.py:152
↓ 26 callersMethodcreate
(constraints: List[List[int]])
fairseq/fairseq/token_generation_constraints.py:146
↓ 26 callersMethodhalf
(self)
fairseq/fairseq/modules/lightconv_layer/lightconv_layer.py:136
↓ 26 callersMethodset_incremental_state
Helper for setting incremental state for an nn.Module.
fairseq/fairseq/incremental_decoding_utils.py:34
↓ 25 callersFunction__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
fairseq/fairseq/data/data_utils_fast.cpp:27169
↓ 25 callersMethodget_incremental_state
Helper for getting incremental state for an nn.Module.
fairseq/fairseq/incremental_decoding_utils.py:23
↓ 25 callersMethodsize
(self, index)
fairseq/examples/wav2vec/unsupervised/data/extracted_features_dataset.py:129
↓ 24 callersFunctionpreprocess_lm_data
(data_dir)
fairseq/tests/utils.py:206
↓ 23 callersFunctionquant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described
fairseq/fairseq/modules/quant_noise.py:10
↓ 21 callersFunction__Pyx_PyObject_Call
fairseq/fairseq/data/token_block_utils_fast.cpp:26733
↓ 21 callersMethodbuild_model
(cls, args, task)
fairseq/tests/utils.py:471
↓ 21 callersMethodcumsum
(sequence, sample_ratios)
fairseq/fairseq/data/concat_dataset.py:16
↓ 21 callersMethodload_indexed_dataset
(path, dictionary)
fairseq/fairseq/tasks/semisupervised_translation.py:165
↓ 19 callersFunction__Pyx_PyObject_Call
fairseq/fairseq/data/data_utils_fast.cpp:25124
↓ 19 callersFunction__Pyx_PyObject_IsTrue
fairseq/fairseq/data/data_utils_fast.cpp:32243
↓ 19 callersFunction__Pyx_PyType_GetName
fairseq/fairseq/data/token_block_utils_fast.cpp:33442
↓ 19 callersMethodget_num_updates
Get the number of parameters updates.
fairseq/fairseq/trainer.py:1088
↓ 19 callersMethodmodel
(self)
fairseq/fairseq/trainer.py:248
↓ 19 callersMethodopen
( path: str, mode: str = "r", buffering: int = -1, encoding: Optional[str] = N
fairseq/fairseq/file_io.py:44
↓ 19 callersMethodset_lr
(self, lr)
fairseq/fairseq/optim/bmuf.py:55
↓ 18 callersFunction__Pyx_PyType_GetName
fairseq/fairseq/data/data_utils_fast.cpp:32051
↓ 18 callersMethodget_smoothed_values
Get all smoothed values.
fairseq/fairseq/logging/meters.py:299
↓ 18 callersMethodload_state_dict
(self, state_dict)
fairseq/fairseq/logging/meters.py:44
↓ 18 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
fairseq/fairseq/data/denoising_dataset.py:411
↓ 18 callersFunctiontensorize
(constraints: List[List[int]])
fairseq/tests/test_constraints.py:13
↓ 17 callersMethodadd_args
Add optimizer-specific arguments to the parser.
fairseq/fairseq/optim/sgd.py:18
↓ 17 callersMethodbackward
(ctx, grad_output)
fairseq/fairseq/modules/base_layer.py:130
↓ 17 callersFunctiongen_parser_from_dataclass
convert a dataclass instance to tailing parser arguments
fairseq/fairseq/dataclass/utils.py:53
↓ 16 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
fairseq/fairseq/models/fconv_self_att.py:605
↓ 16 callersFunction__Pyx_ImportType_3_0_8
fairseq/fairseq/data/token_block_utils_fast.cpp:29687
↓ 16 callersFunction__Pyx_ImportType_3_0_8
fairseq/fairseq/data/data_utils_fast.cpp:27913
↓ 16 callersFunction__Pyx_PyObject_IsTrue
fairseq/fairseq/data/token_block_utils_fast.cpp:33634
↓ 16 callersFunction_fill
Filling tensor x with y at masked positions (dim=0).
fairseq/fairseq/models/nat/levenshtein_utils.py:265
↓ 16 callersFunctioncall
(cmd, debug=False)
fairseq/examples/multilingual/data_scripts/download_wmt19_and_before.py:121
↓ 16 callersMethodget_lr
(self)
fairseq/fairseq/optim/bmuf.py:52
↓ 16 callersFunctionsample
(id: int, length: int)
fairseq/tests/test_dataset.py:19
↓ 16 callersMethodstart
(self)
fairseq/fairseq/logging/meters.py:206
↓ 14 callersFunction_pair
(v)
fairseq/fairseq/modules/vggblock.py:15
↓ 14 callersMethodexists
(path)
fairseq/fairseq/data/indexed_dataset.py:198
↓ 14 callersMethodisfile
(path: str)
fairseq/fairseq/file_io.py:91
↓ 14 callersFunctionremove_bpe
(line, bpe_symbol)
fairseq/examples/noisychannel/rerank_utils.py:248
↓ 14 callersMethodtrain
(mode=True)
fairseq/fairseq/models/fairseq_model.py:210
↓ 13 callersFunction__Pyx_PyInt_From_int64_t
CIntToPy */
fairseq/fairseq/data/token_block_utils_fast.cpp:32157
↓ 13 callersFunction__Pyx_TypeTest
ExtTypeTest */
fairseq/fairseq/data/token_block_utils_fast.cpp:27553
↓ 13 callersMethod_test_case
(self, paths, extra_flags)
fairseq/tests/test_valid_subset_checks.py:57
↓ 13 callersMethoddevice
(self)
fairseq/fairseq/models/roberta/hub_interface.py:32
↓ 13 callersMethodmax_positions
Maximum input length supported by the encoder.
fairseq/fairseq/models/lstm.py:342
↓ 13 callersMethodmkdir
(arg)
fairseq/examples/wav2vec/vq-wav2vec_featurize.py:72
↓ 12 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/fairseq/models/lightconv.py:897
↓ 12 callersFunction_current_postion_info
()
fairseq/tests/speech_recognition/asr_test_base.py:126
↓ 12 callersMethodbuild_bpe
Build the tokenizer for this task.
fairseq/fairseq/tasks/fairseq_task.py:614
↓ 12 callersMethodforward
(self, src_tokens, src_lengths=None, **kwargs)
fairseq/tests/utils.py:482
↓ 12 callersMethodget_normalized_probs
(self, net_output, log_probs, sample=None)
fairseq/examples/speech_recognition/models/vggtransformer.py:154
↓ 12 callersMethodhas_next
Whether the iterator has been exhausted.
fairseq/fairseq/data/iterators.py:63
next →1–100 of 6,051, ranked by callers