MCPcopy Create free account

hub / github.com/OFA-Sys/OFA / functions

Functions6,938 in github.com/OFA-Sys/OFA

↓ 5 callersMethod_map_index
If dataset A has length N and dataset B has length M then index 1 maps to index 1 of dataset A, and index N + 1 maps to index
fairseq/fairseq/data/multi_corpus_dataset.py:132
↓ 5 callersMethod_set_input_buffer
( self, incremental_state: Dict[str, Dict[str, Optional[Tensor]]], buffer: Dict[str, O
fairseq/examples/linformer/linformer_src/modules/multihead_linear_attention.py:442
↓ 5 callersFunction_set_legacy_defaults
Helper to set default arguments based on *add_args*.
fairseq/fairseq/dataclass/utils.py:196
↓ 5 callersFunctionadd_dataset_args
(parser, train=False, gen=False)
fairseq/fairseq/options.py:305
↓ 5 callersFunctionadd_distributed_training_args
(parser, default_world_size=None)
fairseq/fairseq/options.py:312
↓ 5 callersMethodadd_symbols
(self, *syms)
fairseq/fairseq/data/huffman/huffman_coder.py:180
↓ 5 callersMethodassertSharing
(self, model, link_groups: Sequence[Sequence[str]])
fairseq/tests/test_roberta.py:128
↓ 5 callersMethodassertTensorEqual
(self, t1, t2)
fairseq/tests/test_sequence_generator.py:184
↓ 5 callersMethodassertTensorEqual
(self, t1, t2, delta: float = 1e-6)
fairseq/tests/test_roberta.py:121
↓ 5 callersMethodassertTensorEqual
(self, t1, t2)
fairseq/tests/speech_recognition/test_collaters.py:52
↓ 5 callersMethodbackward
(ctx, grad_output)
fairseq/examples/translation_moe/translation_moe_src/logsumexp_moe.py:23
↓ 5 callersFunctionbase_architecture
(args)
fairseq/fairseq/models/fconv.py:700
↓ 5 callersFunctionbase_architecture
(args)
fairseq/fairseq/models/transformer/transformer_legacy.py:169
↓ 5 callersMethodbuild_generator
( self, models, args, seq_gen_cls=None, extra_gen_cls_kwargs=None, prefix_allowed_tokens_fn=None,
tasks/mm_tasks/snli_ve.py:108
↓ 5 callersMethodbuild_model
Build a new model instance.
fairseq/fairseq/models/lstm.py:86
↓ 5 callersFunctionbuild_transformer_monotonic_attention
(**extra_args: Any)
fairseq/examples/simultaneous_translation/tests/test_text_models.py:71
↓ 5 callersFunctioncheckpoint_paths
Retrieves all checkpoints found in `path` directory. Checkpoints are identified by matching filename to the specified pattern. If the pattern
utils/checkpoint_utils.py:490
↓ 5 callersFunctioncheckpoint_paths
Retrieves all checkpoints found in `path` directory. Checkpoints are identified by matching filename to the specified pattern. If the pattern
fairseq/fairseq/checkpoint_utils.py:475
↓ 5 callersFunctionconvert_sr
(inpath, sr, output_path=None)
fairseq/examples/speech_synthesis/preprocessing/denoise_and_vad_audio.py:42
↓ 5 callersMethoddecode
(x: str)
fairseq/fairseq/data/encoders/bytes.py:32
↓ 5 callersFunctiondualinputs2ttransformer_base
(args)
fairseq/examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py:987
↓ 5 callersMethodencode_image
(self, image)
models/clip/model.py:339
↓ 5 callersFunctionfind_offsets
given a file and a number of chuncks, find the offsets in the file to be able to chunk around full lines.
fairseq/fairseq/file_chunker_utils.py:20
↓ 5 callersMethodfinetune_params
(finetune_params, param_name)
fairseq/fairseq/models/speech_to_text/xm_transformer.py:411
↓ 5 callersMethodforward_decoder
( self, tokens, encoder_outs: List[Dict[str, List[Tensor]]], incremental_state
fairseq/fairseq/sequence_generator.py:763
↓ 5 callersMethodforward_encoder
(self, net_input: Dict[str, Tensor])
fairseq/fairseq/sequence_generator.py:757
↓ 5 callersMethodforward_length
(self, normalize, encoder_out)
fairseq/fairseq/models/nat/nonautoregressive_transformer.py:235
↓ 5 callersMethodforward_length_prediction
(self, length_out, encoder_out, tgt_tokens=None)
fairseq/fairseq/models/nat/nonautoregressive_transformer.py:368
↓ 5 callersMethodgenerate
Generate a batch of inferences.
fairseq/examples/speech_recognition/w2l_decoder.py:70
↓ 5 callersFunctiongenerate_config
(overrides_kv)
fairseq/examples/simultaneous_translation/tests/test_text_models.py:28
↓ 5 callersMethodget_decoder_langtok
(self, tgt_lang)
fairseq/fairseq/tasks/multilingual_translation.py:173
↓ 5 callersMethodget_normalized_probs
(self, net_output, log_probs, sample=None)
fairseq/fairseq/criterions/composite_loss.py:51
↓ 5 callersFunctionget_res_file
(file_prefix)
fairseq/examples/wav2vec/unsupervised/w2vu_generate.py:267
↓ 5 callersFunctionget_window
( window_fn: callable, n_fft: int, win_length: int )
fairseq/fairseq/data/audio/audio_utils.py:213
↓ 5 callersMethodinverse
(self, magnitude, phase)
fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/stft.py:107
↓ 5 callersFunctionload_df_from_tsv
(path: Union[str, Path])
fairseq/examples/speech_to_text/data_utils.py:204
↓ 5 callersFunctionload_indexed_dataset
A helper function for loading indexed datasets. Args: path (str): path to indexed dataset (e.g., 'data-bin/train') dictionary (~f
fairseq/fairseq/data/data_utils.py:72
↓ 5 callersFunctionmake_dataset
(vocab, input_prefix, output_prefix, lang, num_workers=1)
fairseq/fairseq_cli/preprocess.py:254
↓ 5 callersFunctionmake_dataset
(path, impl, fix_lua_indexing=False, dictionary=None)
fairseq/fairseq/data/indexed_dataset.py:75
↓ 5 callersFunctionmake_sample_with_padding
(longer_src=False)
fairseq/examples/simultaneous_translation/tests/test_text_models.py:35
↓ 5 callersMethodmax_positions
Maximum output length supported by the encoder.
fairseq/fairseq/models/roberta/model.py:518
↓ 5 callersFunctionmaybe_shorten_dataset
( dataset, split, shorten_data_split_list, shorten_method, tokens_per_sample, seed, )
fairseq/fairseq/data/shorten_dataset.py:63
↓ 5 callersFunctionmerge
(key)
data/mm_data/vqa_gen_dataset.py:36
↓ 5 callersFunctionmock_dict
()
fairseq/tests/test_train.py:30
↓ 5 callersFunctionnew_arange
Return a Tensor of `size` filled with a range function on the device of x. If size is empty, using the size of the variable x.
fairseq/fairseq/utils.py:690
↓ 5 callersFunctionnormal_
(data)
fairseq/fairseq/modules/transformer_sentence_encoder.py:35
↓ 5 callersMethodpredict
(self, states)
fairseq/examples/simultaneous_translation/eval/agents/simul_t2t_enja.py:211
↓ 5 callersMethodprocess_pure_text
(self, index)
data/s2t_data/unify_dataset.py:229
↓ 5 callersMethodprocess_speech_text_pair
(self, index, dataset=None)
data/s2t_data/unify_dataset.py:343
↓ 5 callersFunctionrename_logger
(logger, new_name)
fairseq/fairseq/logging/progress_bar.py:172
↓ 5 callersMethodrestore
Load data from a model spec into EMA model
fairseq/fairseq/models/ema/ema.py:122
↓ 5 callersMethodsetUpClass
(cls)
fairseq/tests/speech_recognition/asr_test_base.py:391
↓ 5 callersMethodsetUpEncoder
(self, encoder)
fairseq/tests/speech_recognition/asr_test_base.py:396
↓ 5 callersMethodsetUpInput
(self, input=None)
fairseq/tests/speech_recognition/asr_test_base.py:403
↓ 5 callersMethodsetup_task
(cls, args, **kwargs)
fairseq/examples/roberta/wsc/wsc_task.py:76
↓ 5 callersMethodsize
(self, index)
fairseq/fairseq/data/audio/hubert_dataset.py:333
↓ 5 callersMethodstride
(self)
fairseq/fairseq/models/speech_to_text/modules/augmented_memory_attention.py:49
↓ 5 callersMethodtoken_counts
Returns a counter of the number of times each token is used in a constraint.
fairseq/fairseq/token_generation_constraints.py:164
↓ 5 callersFunctiontrain_path
(lang)
fairseq/fairseq_cli/preprocess.py:48
↓ 5 callersMethodtransform
(self, input_data)
fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/stft.py:77
↓ 5 callersFunctiontype_as
(a, b)
fairseq/fairseq/logging/meters.py:15
↓ 5 callersMethodupdate_config
Log latest configuration.
fairseq/fairseq/logging/progress_bar.py:153
↓ 4 callersFunctionLinear
(in_features, out_features, bias=True)
models/ofa/unify_transformer.py:1876
↓ 4 callersMethod__init__
(self, iterable, epoch=None, prefix=None)
fairseq/fairseq/logging/progress_bar.py:123
↓ 4 callersMethod__init__
(self, encoder, decoder)
fairseq/fairseq/models/lightconv.py:78
↓ 4 callersMethod__init__
(self, in_dim, n_layers, n_units, dropout)
fairseq/fairseq/models/text_to_speech/tacotron2.py:86
↓ 4 callersMethod__init__
(self, cfg: Wav2Vec2Config)
fairseq/fairseq/models/wav2vec/wav2vec2.py:295
↓ 4 callersMethod__init__
(self, pad_left, pad_right)
fairseq/fairseq/models/wav2vec/wav2vec.py:422
↓ 4 callersMethod__init__
(self, d_model, n_head, attn_span, dropout, adapt_span_layer, **kargs)
fairseq/examples/adaptive_span/adaptive_span_model.py:50
↓ 4 callersMethod__init__
( self, dictionary, embed_dim=512, transformer_config=DEFAULT_ENC_TRANSFORMER_
fairseq/examples/speech_recognition/models/vggtransformer.py:575
↓ 4 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
models/taming/modules/vqvae/quantize.py:332
↓ 4 callersFunction_broadcast_object_slow
( obj: Any, src_rank: int, group: object, dist_device: torch.device, )
fairseq/fairseq/distributed/utils.py:770
↓ 4 callersFunction_collate_frames
Convert a list of 2D frames into a padded 3D tensor Args: frames (list): list of 2D frames of size L[i]*f_dim. Where L[i] is
fairseq/fairseq/data/audio/speech_to_text_dataset.py:99
↓ 4 callersMethod_format_stats
(self, stats)
fairseq/fairseq/logging/progress_bar.py:163
↓ 4 callersMethod_get_input_buffer
(self, incremental_state)
fairseq/fairseq/modules/dynamic_convolution.py:286
↓ 4 callersMethod_get_input_buffer
( self, incremental_state: Optional[Dict[str, Dict[str, Optional[Tensor]]]] )
models/ofa/unify_multihead_attention.py:473
↓ 4 callersMethod_get_meta
( self, attribute_name: str, meta: str, default: Optional[Any] = None )
fairseq/fairseq/dataclass/configs.py:40
↓ 4 callersMethod_get_module
(self)
fairseq/tests/distributed/test_module_proxy_wrapper.py:42
↓ 4 callersFunction_lang_token_index
Return language token index.
fairseq/fairseq/tasks/multilingual_translation.py:33
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
models/clip/model.py:126
↓ 4 callersMethod_map_index_to_dataset
Different underlying datasets have different lengths. In order to ensure we are not accessing an index outside the range of the curre
fairseq/fairseq/data/multi_corpus_sampled_dataset.py:71
↓ 4 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
fairseq/fairseq/modules/dynamic_convolution.py:289
↓ 4 callersMethod_set_input_buffer
( self, incremental_state: Dict[str, Dict[str, Optional[Tensor]]], buffer: Dict[str, O
models/ofa/unify_multihead_attention.py:483
↓ 4 callersFunction_test_save_and_load
(scripted_module)
fairseq/tests/test_export.py:61
↓ 4 callersMethod_train
(self, data_dir, extra_flags)
fairseq/tests/test_binaries.py:1686
↓ 4 callersMethod_transpose_if_training
(self, x, incremental_state)
fairseq/fairseq/models/fconv.py:630
↓ 4 callersMethod_xla_markstep_and_send_to_cpu
(self, data=None)
trainer.py:1490
↓ 4 callersMethod_xla_markstep_and_send_to_cpu
(self, data=None)
fairseq/fairseq/trainer.py:1468
↓ 4 callersMethodadd_file_to_dictionary
(filename, dict, tokenize, num_workers)
fairseq/fairseq/data/dictionary.py:348
↓ 4 callersMethodadd_from_file
Loads a pre-existing dictionary from a text file and adds its symbols to this instance.
fairseq/fairseq/data/dictionary.py:229
↓ 4 callersMethodadvance
Reads in a token and advances the state. Here's how it works. We can advance to the next state if: - there is a matching child
fairseq/fairseq/token_generation_constraints.py:463
↓ 4 callersMethodall_reduce_grads
(self, module)
fairseq/fairseq/optim/amp_optimizer.py:100
↓ 4 callersMethodassertAlmostEqual
(self, t1, t2)
fairseq/tests/test_convtbc.py:48
↓ 4 callersMethodassertAlmostEqual
(self, t1, t2)
fairseq/tests/test_character_token_embedder.py:42
↓ 4 callersMethodassertFnMatch
(self, fn, values)
fairseq/tests/test_online_backtranslation.py:186
↓ 4 callersMethodassertHypoScore
( self, hypo, pos_probs, sibling_rank, diversity_rate, normalized=True, lenpen=1.0 )
fairseq/tests/test_sequence_generator.py:525
↓ 4 callersMethodassertTensorEqual
(self, t1, t2)
fairseq/tests/test_noising.py:524
↓ 4 callersFunctionauto_bleu
(sentence, weights, mean_mode='arithmetic')
fairseq/examples/textless_nlp/gslm/metrics/asr_metrics/self_auto_bleu.py:114
↓ 4 callersFunctionbase_architecture
(args)
fairseq/fairseq/model_parallel/models/roberta/model.py:193
↓ 4 callersFunctionbase_architecture
(args)
fairseq/fairseq/models/lightconv.py:907
← previousnext →301–400 of 6,938, ranked by callers