MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 1 callersFunction_flatten
Flatten a nested dictionary.
fairseq/data/nested_dictionary_dataset.py:14
↓ 1 callersFunction_flatten_config
(cfg: DictConfig)
fairseq_cli/train.py:275
↓ 1 callersMethod_forward_expanded
Turn the convolution filters into band matrices and do matrix multiplication. This is faster when the sequence is short, but less memory effic
fairseq/modules/dynamic_convolution.py:228
↓ 1 callersMethod_forward_expanded
Turn the convolution filters into band matrices and do matrix multiplication. This is faster when the sequence is short, but less memory effic
fairseq/modules/lightweight_convolution.py:250
↓ 1 callersMethod_forward_expanded
Turn the convolution filters into band matrices and do matrix multiplication. This is faster when the sequence is short, but less memory effic
fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:184
↓ 1 callersMethod_forward_unfolded
The conventional implementation of convolutions. Unfolding the input by having a window shifting to the right.
fairseq/modules/dynamic_convolution.py:172
↓ 1 callersMethod_forward_unfolded
The conventional implementation of convolutions. Unfolding the input by having a window shifting to the right.
fairseq/modules/lightweight_convolution.py:208
↓ 1 callersMethod_forward_unfolded
The conventional implementation of convolutions. Unfolding the input by having a window shifting to the right.
fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:135
↓ 1 callersMethod_from_list
( cls, split_name: str, is_train_split, samples: List[List[Dict]], dat
fairseq/data/audio/speech_to_text_dataset.py:413
↓ 1 callersMethod_generate_sentence_pair
Go through a single document and genrate sentence paris from it
fairseq/data/legacy/block_pair_dataset.py:153
↓ 1 callersMethod_get_all_attributes
(self)
fairseq/dataclass/configs.py:36
↓ 1 callersMethod_get_argparse_alias
(self, attribute_name: str)
fairseq/dataclass/configs.py:75
↓ 1 callersMethod_get_argparse_const
(self, attribute_name: str)
fairseq/dataclass/configs.py:72
↓ 1 callersMethod_get_default
(self, attribute_name: str)
fairseq/dataclass/configs.py:47
↓ 1 callersMethod_get_feat_extract_output_lengths
Computes the output length of the convolutional layers
fairseq/models/wav2vec/wav2vec2.py:446
↓ 1 callersMethod_get_file
(self)
fairseq/data/fasta_dataset.py:37
↓ 1 callersMethod_get_help
(self, attribute_name: str)
fairseq/dataclass/configs.py:69
↓ 1 callersMethod_get_iterator_for_epoch
(self, epoch, shuffle, offset=0)
fairseq/data/iterators.py:226
↓ 1 callersFunction_get_kaldi_fbank
Get mel-filter bank features via PyKaldi.
fairseq/data/audio/audio_utils.py:32
↓ 1 callersMethod_get_linearized_weight
(self)
fairseq/modules/linearized_convolution.py:100
↓ 1 callersMethod_get_lr
(self, param_group, param_state)
fairseq/optim/adafactor.py:139
↓ 1 callersMethod_get_meta
(self)
fairseq/data/dictionary.py:271
↓ 1 callersFunction_get_module_by_path
(module, path)
fairseq/trainer.py:1219
↓ 1 callersMethod_get_name
(self, attribute_name: str)
fairseq/dataclass/configs.py:44
↓ 1 callersMethod_get_options
(self, param_group, param_shape)
fairseq/optim/adafactor.py:151
↓ 1 callersMethod_get_pointers
(sizes)
fairseq/data/indexed_dataset.py:397
↓ 1 callersMethod_get_sample_prob
Get smoothed sampling porbability by languages. This helps low resource languages by upsampling them.
fairseq/tasks/multilingual_masked_lm.py:141
↓ 1 callersMethod_get_sample_prob
Get smoothed sampling porbability by languages. This helps low resource languages by upsampling them.
fairseq/tasks/multilingual_denoising.py:91
↓ 1 callersMethod_get_shard_num_dict
(cls, split, paths)
fairseq/data/multilingual/multilingual_data_manager.py:862
↓ 1 callersMethod_get_size_ratios
Size ratios for temperature-based sampling (https://arxiv.org/abs/1907.05019)
fairseq/data/audio/speech_to_text_dataset.py:456
↓ 1 callersFunction_get_torchaudio_fbank
Get mel-filter bank features via TorchAudio.
fairseq/data/audio/audio_utils.py:54
↓ 1 callersMethod_get_whole_word_mask
(self)
fairseq/tasks/multilingual_masked_lm.py:116
↓ 1 callersFunction_infer_single_node_init
(cfg: DistributedTrainingConfig)
fairseq/distributed/utils.py:140
↓ 1 callersFunction_infer_slurm_init
(cfg: DistributedTrainingConfig, num_pipelines_per_node)
fairseq/distributed/utils.py:84
↓ 1 callersFunction_infer_torch_distributed_launch_init
(cfg: DistributedTrainingConfig)
fairseq/distributed/utils.py:76
↓ 1 callersMethod_inference_with_bleu
(self, generator, sample, model)
fairseq/tasks/translation.py:449
↓ 1 callersMethod_inference_with_bleu
(self, generator, sample, model)
glat_plugins/tasks/translation_lev_modified.py:225
↓ 1 callersMethod_inference_with_wer
(self, generator, sample, model)
fairseq/tasks/audio_pretraining.py:215
↓ 1 callersMethod_is_bmuf_iter
(self)
fairseq/optim/bmuf.py:102
↓ 1 callersMethod_is_warmup_end
(self)
fairseq/optim/bmuf.py:96
↓ 1 callersMethod_lang_to_id
Build a map from languages to ids. These ids are used as segment labels for cross-lingual LM training.
fairseq/tasks/cross_lingual_lm.py:68
↓ 1 callersMethod_load_meta
(self, lines)
fairseq/data/dictionary.py:274
↓ 1 callersMethod_load_single_lang_dataset
(self, split, epoch)
fairseq/tasks/cross_lingual_lm.py:106
↓ 1 callersMethod_make_source_target
(self, source, future_target, past_target)
fairseq/data/monolingual_dataset.py:117
↓ 1 callersMethod_make_tail
(self, adaptive_inputs=None, tie_proj=False)
fairseq/modules/adaptive_softmax.py:129
↓ 1 callersMethod_map_epoch_index_to_global
(self, index)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:101
↓ 1 callersFunction_match_types
Convert the numerical argument to the same type as the other argument
fairseq/utils.py:375
↓ 1 callersMethod_maybe_add_bos
(self, source, target)
fairseq/data/monolingual_dataset.py:161
↓ 1 callersFunction_mean_pooling
(enc_feats, src_masks)
fairseq/models/nat/nonautoregressive_transformer.py:17
↓ 1 callersMethod_next_global_indices
(self, epoch)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:149
↓ 1 callersMethod_no_repeat_ngram
For each hypothesis generate a list of previous ngrams and set associated lprobs to -inf
fairseq/ngram_repeat_block.py:96
↓ 1 callersMethod_pair_sentences
Give a list of evenly cut blocks/sentences, pair these sentences with 50% consecutive sentences and 50% random sentences. Thi
fairseq/data/legacy/block_pair_dataset.py:100
↓ 1 callersMethod_pass_grad
Manually set gradient for backward pass. for y = f(x), ensure that during the backward pass, dL/dy = dL/dx regardless of f(x).
fairseq/modules/kmeans_vector_quantizer.py:52
↓ 1 callersMethod_per_lang_pair_train_loss
( self, lang_pair, model, update_num, criterion, sample, optimizer, ignore_grad )
fairseq/tasks/multilingual_translation.py:321
↓ 1 callersMethod_per_lang_pair_valid_loss
(self, lang_pair, model, criterion, sample)
fairseq/tasks/multilingual_translation.py:375
↓ 1 callersFunction_pipeline_parallel_post_init
( cfg: DistributedTrainingConfig, num_pipeline_devices, num_pipelines_per_node )
fairseq/distributed/utils.py:196
↓ 1 callersFunction_pipeline_parallel_pre_init
(cfg: DistributedTrainingConfig)
fairseq/distributed/utils.py:148
↓ 1 callersMethod_prefix_tokens
Handle prefix tokens
fairseq/sequence_generator.py:553
↓ 1 callersMethod_prepare_batch_for_alignment
(self, sample, hypothesis)
fairseq/sequence_generator.py:918
↓ 1 callersFunction_put_tensors_in_obj
(obj: Any, tensors: List[torch.Tensor])
fairseq/distributed/utils.py:788
↓ 1 callersFunction_replace
(encoder_out, new_val)
fairseq/models/nat/fairseq_nat_model.py:49
↓ 1 callersMethod_reshape
Reshapes the matrix W as expained in step (1).
fairseq/modules/quantization/pq/pq.py:60
↓ 1 callersMethod_sample
(self, indices, counters)
fairseq/data/multi_corpus_dataset.py:89
↓ 1 callersMethod_sample_topp
Sample among the smallest set of elements whose cumulative probability mass exceeds p. See `"The Curious Case of Neural Text Degeneration"
fairseq/search.py:630
↓ 1 callersMethod_save
(self, f, kv_iterator)
fairseq/data/dictionary.py:263
↓ 1 callersMethod_sent_to_dataset_index
Build index mapping block indices to the underlying dataset indices
fairseq/data/legacy/block_pair_dataset.py:123
↓ 1 callersFunction_set_module_by_path
(module, path, value)
fairseq/trainer.py:1226
↓ 1 callersMethod_set_seed
(self)
fairseq/trainer.py:992
↓ 1 callersMethod_setup
(self, epoch)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:83
↓ 1 callersMethod_split_encoder_out
Split and transpose encoder outputs. This is cached when doing incremental inference.
fairseq/models/fconv.py:610
↓ 1 callersMethod_split_encoder_out
Split and transpose encoder outputs.
fairseq/models/fconv_self_att.py:546
↓ 1 callersFunction_split_tensors_from_obj
(obj: Any, tensors: List[torch.Tensor])
fairseq/distributed/utils.py:771
↓ 1 callersMethod_str_commas
(self, stats)
fairseq/logging/progress_bar.py:152
↓ 1 callersMethod_sync_fp32_params_to_fp16
(self)
fairseq/optim/fp16_optimizer.py:141
↓ 1 callersMethod_sync_sample_ratios
(self, ratios)
fairseq/data/multilingual/sampled_multi_dataset.py:157
↓ 1 callersMethod_truncate_sentences
Trancate a pair of sentence to limit total length under max_num_tokens Logics: 1. Truncate longer sentence 2.
fairseq/data/legacy/block_pair_dataset.py:223
↓ 1 callersFunction_unflatten
Unflatten a flattened dictionary into a nested dictionary.
fairseq/data/nested_dictionary_dataset.py:31
↓ 1 callersFunction_uniform_assignment
(src_lens, trg_lens)
fairseq/models/nat/nonautoregressive_transformer.py:34
↓ 1 callersMethod_unscale_grads
(self)
fairseq/optim/fp16_optimizer.py:165
↓ 1 callersMethod_unscale_grads
(self)
fairseq/optim/fp16_optimizer.py:387
↓ 1 callersMethod_update_global_model
(self)
fairseq/optim/bmuf.py:175
↓ 1 callersFunction_upgrade_state_dict
Helper for upgrading old model checkpoints.
fairseq/checkpoint_utils.py:462
↓ 1 callersMethod_viterbi_decode
(self, emissions, masks=None, beam=None)
fairseq/modules/dynamic_crf_layer.py:135
↓ 1 callersMethod_warmup_sync
(self, root_rank=0)
fairseq/optim/bmuf.py:110
↓ 1 callersMethod_writer
(self, key)
fairseq/logging/progress_bar.py:338
↓ 1 callersMethodadd_args
(parser)
fairseq/data/encoders/bytes.py:22
↓ 1 callersMethodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/masked_lm.py:37
↓ 1 callersMethodadd_args
Add model-specific arguments to the parser.
fairseq/models/lstm.py:33
↓ 1 callersMethodadd_arguments
(parser)
fairseq/data/multilingual/sampling_method.py:38
↓ 1 callersFunctionadd_constraint
(constraint)
scripts/constraints/extract.py:33
↓ 1 callersFunctionadd_defaults
This function adds default values that are stored in dataclasses that hydra doesn't know about
fairseq/dataclass/initialize.py:30
↓ 1 callersFunctionadd_eval_lm_args
(parser)
fairseq/options.py:329
↓ 1 callersMethodadd_factory
(self, name, factory: Callable[[], Any])
fairseq/tasks/fairseq_task.py:28
↓ 1 callersMethodadd_from_file
Loads a pre-existing dictionary from a text file and adds its symbols to this instance.
fairseq/data/dictionary.py:218
↓ 1 callersFunctionadd_generation_args
(parser)
fairseq/options.py:335
↓ 1 callersMethodadd_hooks
(self, module)
fairseq/nan_detector.py:51
↓ 1 callersFunctionadd_interactive_args
(parser)
fairseq/options.py:342
↓ 1 callersFunctionadd_model_args
(parser)
fairseq/options.py:347
↓ 1 callersFunctionadd_optimization_args
(parser)
fairseq/options.py:309
↓ 1 callersFunctionadd_preprocess_args
(parser)
fairseq/options.py:244
← previousnext →601–700 of 3,098, ranked by callers