MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 1 callersMethodadd_rolling_noise
(self, tokens)
fairseq/data/denoising_dataset.py:364
↓ 1 callersMethodadd_sequence
Adds a constraint, represented as a list of integers, to the trie.
fairseq/token_generation_constraints.py:181
↓ 1 callersMethodadd_string
(self, ref, pred)
fairseq/scoring/wer.py:48
↓ 1 callersMethodadd_whole_word_mask
(self, source, p)
fairseq/data/denoising_dataset.py:250
↓ 1 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/token_generation_constraints.py:463
↓ 1 callersMethodaggregate_logging_outputs
Aggregate logging outputs from data parallel training.
fairseq/criterions/fairseq_criterion.py:73
↓ 1 callersMethodaggregate_logging_outputs
[deprecated] Aggregate logging outputs from data parallel training.
fairseq/tasks/fairseq_task.py:512
↓ 1 callersMethodalter_dataset_langtok
( self, lang_pair_dataset, src_eos=None, src_lang=None, tgt_eos=None,
fairseq/data/multilingual/multilingual_data_manager.py:711
↓ 1 callersMethodapply_bpe
(self, sentence: str)
fairseq/hub_utils.py:238
↓ 1 callersMethodapply_mask
(self, x, prev_output_tokens, original_batch_idxs)
fairseq/search.py:154
↓ 1 callersMethodapply_sparse_mask
(self, attn_weights, tgt_len: int, src_len: int, bsz: int)
fairseq/modules/multihead_attention.py:454
↓ 1 callersFunctionargparse_name
(name: str)
fairseq/dataclass/utils.py:58
↓ 1 callersFunctionarrange
(s, e, length, keep_length)
fairseq/data/data_utils.py:458
↓ 1 callersFunctionaugment_dictionary
( dictionary: Dictionary, language_list: List[str], lang_tok_style: str, langtoks_specs: Seque
fairseq/data/multilingual/multilingual_utils.py:47
↓ 1 callersFunctionaverage_checkpoints
Loads checkpoints from inputs and returns a model with averaged weights. Args: inputs: An iterable of string paths of checkpoints to load f
scripts/average_checkpoints.py:16
↓ 1 callersFunctionbacktranslate_samples
Backtranslate a list of samples. Given an input (*samples*) of the form: [{'id': 1, 'source': 'hallo welt'}] this will return:
fairseq/data/backtranslation_dataset.py:12
↓ 1 callersMethodbackward
Computes the sum of gradients of the given tensor w.r.t. graph leaves. Compared to :func:`fairseq.optim.FairseqOptimizer.backward`, this
fairseq/optim/fp16_optimizer.py:92
↓ 1 callersFunctionbart_base_architecture
(args)
fairseq/models/bart/model.py:359
↓ 1 callersFunctionbase_architecture
(args)
fairseq/models/fconv_self_att.py:634
↓ 1 callersFunctionbase_architecture
(args)
fairseq/models/lstm_lm.py:124
↓ 1 callersFunctionbase_architecture
(args)
fairseq/models/nat/nonautoregressive_transformer.py:577
↓ 1 callersFunctionbase_architecture
(args)
fairseq/models/speech_to_text/convtransformer.py:400
↓ 1 callersMethodbegin_epoch
Called at the beginning of each epoch.
fairseq/trainer.py:496
↓ 1 callersMethodbegin_valid_epoch
Called at the beginning of each validation epoch.
fairseq/trainer.py:514
↓ 1 callersFunctionbert_base_architecture
(args)
fairseq/models/masked_lm.py:344
↓ 1 callersMethodbinarize
(self, sentence: str)
fairseq/hub_utils.py:248
↓ 1 callersFunctionbleu_ltrim
left trim (remove pad)
fairseq/clib/libbleu/libbleu.cpp:29
↓ 1 callersFunctionbleu_rtrim
right trim remove (eos)
fairseq/clib/libbleu/libbleu.cpp:40
↓ 1 callersFunctionbleu_zero_init
fairseq/clib/libbleu/libbleu.cpp:102
↓ 1 callersMethodbpe
(self, token)
fairseq/data/encoders/gpt2_bpe_utils.py:73
↓ 1 callersMethodbroadcast_global_state_dict
Broadcasts the entire state_dict to all other ranks each rank is responsible to load their own partition of data
fairseq/optim/shard.py:37
↓ 1 callersMethodbuffered_future_mask
(self, tensor)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:561
↓ 1 callersMethodbuffered_future_mask
(self, tensor)
fairseq/models/transformer.py:926
↓ 1 callersMethodbuffered_future_mask
(self, tensor)
fairseq/models/wav2vec/wav2vec2_asr.py:577
↓ 1 callersFunctionbuffered_read
(input, buffer_size)
fairseq_cli/interactive.py:42
↓ 1 callersMethodbuffered_sparse_mask
(self, tensor, tgt_len, src_len)
fairseq/modules/sparse_multihead_attention.py:119
↓ 1 callersMethodbuild_bpe
(self, args)
fairseq/tasks/speech_to_text.py:138
↓ 1 callersMethodbuild_criterion
(cls, args, task)
fairseq/criterions/composite_loss.py:38
↓ 1 callersMethodbuild_decoder
(cls, args, tgt_dict, embed_tokens)
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:307
↓ 1 callersMethodbuild_decoder
(cls, args, tgt_dict, embed_tokens)
fairseq/models/transformer.py:262
↓ 1 callersMethodbuild_decoder
(cls, args, task, embed_tokens)
fairseq/models/speech_to_text/s2t_transformer.py:217
↓ 1 callersMethodbuild_decoder
(cls, args, task, embed_tokens)
fairseq/models/speech_to_text/convtransformer.py:166
↓ 1 callersMethodbuild_decoder
(cls, args, task)
fairseq/models/speech_to_text/berard.py:141
↓ 1 callersMethodbuild_decoder
(cls, cfg: Wav2Vec2Seq2SeqConfig, tgt_dict, embed_tokens)
fairseq/models/wav2vec/wav2vec2_asr.py:257
↓ 1 callersMethodbuild_decoder_layer
(self, args, no_encoder_attn=False)
fairseq/models/transformer.py:724
↓ 1 callersMethodbuild_dictionary
Build the dictionary Args: filenames (list): list of filenames workers (int): number of concurrent workers
fairseq/tasks/fairseq_task.py:101
↓ 1 callersMethodbuild_embedding
(self, vocab_size, embedding_dim, padding_idx)
fairseq/modules/transformer_sentence_encoder.py:193
↓ 1 callersMethodbuild_embedding
(cls, args, dictionary, embed_dim, path=None)
fairseq/model_parallel/models/transformer_lm.py:80
↓ 1 callersMethodbuild_embedding
(cls, args, dictionary, embed_dim, path=None)
fairseq/models/transformer_lm.py:266
↓ 1 callersMethodbuild_embedding
(self, vocab_size, embedding_dim, padding_idx)
fairseq/models/roberta/model.py:434
↓ 1 callersMethodbuild_encoder
(cls, args, src_dict, embed_tokens)
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:303
↓ 1 callersMethodbuild_encoder
(cls, args, src_dict, embed_tokens)
fairseq/models/transformer.py:258
↓ 1 callersMethodbuild_encoder
(self, args, dictionary, embed_tokens)
fairseq/models/roberta/model.py:437
↓ 1 callersMethodbuild_encoder
(cls, args)
fairseq/models/speech_to_text/s2t_transformer.py:204
↓ 1 callersMethodbuild_encoder
(cls, args)
fairseq/models/speech_to_text/convtransformer.py:157
↓ 1 callersMethodbuild_encoder
(cls, args, task)
fairseq/models/speech_to_text/berard.py:124
↓ 1 callersMethodbuild_encoder
(cls, cfg: Wav2Vec2AsrConfig)
fairseq/models/wav2vec/wav2vec2_asr.py:253
↓ 1 callersMethodbuild_encoder_attention
(self, embed_dim, args)
fairseq/modules/transformer_layer.py:261
↓ 1 callersMethodbuild_encoder_layer
(self, args)
fairseq/models/transformer.py:384
↓ 1 callersMethodbuild_fc1
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_layer.py:69
↓ 1 callersMethodbuild_fc1
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_layer.py:241
↓ 1 callersMethodbuild_fc1
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_sentence_encoder_layer.py:85
↓ 1 callersMethodbuild_fc2
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_layer.py:74
↓ 1 callersMethodbuild_fc2
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_layer.py:244
↓ 1 callersMethodbuild_fc2
(self, input_dim, output_dim, q_noise, qn_block_size)
fairseq/modules/transformer_sentence_encoder_layer.py:88
↓ 1 callersMethodbuild_fp32_params
(cls, args, params, flatten=True)
fairseq/optim/fp16_optimizer.py:30
↓ 1 callersMethodbuild_lm_head
(self, embed_dim, output_dim, activation_fn, weight)
fairseq/models/roberta/model.py:442
↓ 1 callersFunctionbuild_lr_scheduler
(cfg: DictConfig, optimizer)
fairseq/optim/lr_scheduler/__init__.py:28
↓ 1 callersMethodbuild_model
Build the :class:`~fairseq.models.BaseFairseqModel` instance for this task. Args: cfg (FairseqDataclass): config
fairseq/tasks/fairseq_task.py:310
↓ 1 callersMethodbuild_model
Build a new model instance.
fairseq/models/wav2vec/wav2vec2_asr.py:145
↓ 1 callersMethodbuild_model_base
Build a new model instance.
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:222
↓ 1 callersMethodbuild_sampler
(args, task)
fairseq/data/multilingual/sampling_method.py:59
↓ 1 callersMethodbuild_self_attention
(self, embed_dim, args)
fairseq/modules/transformer_layer.py:79
↓ 1 callersMethodbuild_self_attention
( self, embed_dim, args, add_bias_kv=False, add_zero_attn=False )
fairseq/modules/transformer_layer.py:247
↓ 1 callersMethodbuild_self_attention
( self, embed_dim, num_attention_heads, dropout, self_attention,
fairseq/modules/transformer_sentence_encoder_layer.py:91
↓ 1 callersMethodbuild_tokenizer
(self, args)
fairseq/tasks/speech_to_text.py:134
↓ 1 callersMethodbuild_transformer_sentence_encoder_layer
( self, embedding_dim, ffn_embedding_dim, num_attention_heads, dropout
fairseq/modules/transformer_sentence_encoder.py:196
↓ 1 callersMethodbuild_underlying_criterion
(args, task)
fairseq/criterions/composite_loss.py:29
↓ 1 callersFunctionbytes_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 callersFunctioncached_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:142
↓ 1 callersMethodcalculate_banned_tokens
( tokens, step: int, gen_ngrams: List[Dict[str, List[int]]], no_repeat_ngram_s
fairseq/ngram_repeat_block.py:131
↓ 1 callersMethodcall_cuda_extension
( self, tokens, lprobs, bsz: int, beam_size: int, step: int,
fairseq/ngram_repeat_block.py:51
↓ 1 callersMethodcan_reuse_epoch_itr
(self, dataset)
fairseq/tasks/fairseq_task.py:204
↓ 1 callersFunctioncheck_alignment
(alignment, src_len, tgt_len)
fairseq/data/language_pair_dataset.py:40
↓ 1 callersMethodcheck_dicts
(self, dicts, source_langs, target_langs)
fairseq/tasks/translation_multi_simple_epoch.py:108
↓ 1 callersMethodcheck_tgt_lang_tag
(self)
fairseq/data/audio/speech_to_text_dataset.py:278
↓ 1 callersFunctioncli_main
()
fairseq_cli/validate.py:135
↓ 1 callersFunctioncli_main
()
fairseq_cli/interactive.py:309
↓ 1 callersFunctioncli_main
()
fairseq_cli/eval_lm.py:339
↓ 1 callersFunctioncli_main
()
fairseq_cli/score.py:37
↓ 1 callersFunctioncli_main
()
fairseq_cli/hydra_train.py:81
↓ 1 callersFunctioncli_main
()
fairseq_cli/generate.py:401
↓ 1 callersFunctioncli_main
()
fairseq_cli/preprocess.py:391
↓ 1 callersMethodclip_grad_norm
(self, clip_norm)
fairseq/trainer.py:930
↓ 1 callersMethodclip_grad_norm
Clips gradient norm and updates dynamic loss scaler.
fairseq/optim/fp16_optimizer.py:184
↓ 1 callersFunctioncollate
( samples, pad_idx, eos_idx, left_pad_source=True, left_pad_target=False, input_feedin
fairseq/data/language_pair_dataset.py:16
↓ 1 callersFunctioncollate
(samples, pad_idx, eos_idx)
fairseq/data/monolingual_dataset.py:12
↓ 1 callersFunctioncollate
( samples, pad_idx, eos_idx, vocab, left_pad_source=False, left_pad_target=False,
fairseq/data/denoising_dataset.py:14
↓ 1 callersMethodcollater
(self, samples)
fairseq/data/id_dataset.py:18
↓ 1 callersFunctioncollect_filtered
Similar to :func:`filter` but collects filtered elements in ``filtered``. Args: function (callable): function that returns ``False``
fairseq/data/data_utils.py:133
← previousnext →701–800 of 3,098, ranked by callers