MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 1 callersMethodcompute_accuracy
(self, model, net_output, sample)
fairseq/criterions/label_smoothed_cross_entropy.py:120
↓ 1 callersMethodcompute_alignment_loss
(self, sample, net_output)
fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py:67
↓ 1 callersFunctioncompute_alignment_weights
Given a tensor of shape [:, 2] containing the source-target indices corresponding to the alignments, a weight vector containing the
fairseq/data/language_pair_dataset.py:51
↓ 1 callersMethodcompute_fixed_attention_subset
(self, word_index, tgt_len)
fairseq/modules/sparse_multihead_attention.py:87
↓ 1 callersMethodcompute_loss
(self, model, net_output, sample, reduce=True)
fairseq/criterions/label_smoothed_cross_entropy.py:109
↓ 1 callersMethodcompute_preds
(self, x, y, negatives)
fairseq/models/wav2vec/wav2vec2.py:431
↓ 1 callersMethodcompute_size
Computes the size of the model (in MB).
fairseq/modules/quantization/pq/utils.py:277
↓ 1 callersMethodconsolidate_optimizer
For OSS, we need to consolidate the state dict.
fairseq/trainer.py:272
↓ 1 callersMethodconvert_to_pipeline_parallel_state_dict
(self, state_dict)
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:378
↓ 1 callersFunctioncopy_tensor
(src, dst)
fairseq/data/data_utils.py:52
↓ 1 callersMethodcreate_batch_sampler_func
( self, max_positions, ignore_invalid_inputs, max_tokens, max_sentence
fairseq/tasks/translation_multi_simple_epoch.py:274
↓ 1 callersMethodcreate_lang_dictionary
(cls, langs)
fairseq/data/multilingual/multilingual_data_manager.py:443
↓ 1 callersMethodcrop_to_max_size
(self, wav, target_size)
fairseq/data/audio/raw_audio_dataset.py:63
↓ 1 callersMethoddecode
(self, x: str)
fairseq/data/encoders/gpt2_bpe.py:39
↓ 1 callersMethoddecode
(self, x: str)
fairseq/data/encoders/hf_byte_bpe.py:44
↓ 1 callersMethoddecode
(self, tokens: torch.LongTensor)
fairseq/models/bart/hub_interface.py:65
↓ 1 callersFunctiondecode_fn
(x)
fairseq_cli/interactive.py:182
↓ 1 callersFunctiondistributed_init
(cfg: FairseqConfig)
fairseq/distributed/utils.py:241
↓ 1 callersFunctiondistributed_main
(i, main, cfg: FairseqConfig, kwargs)
fairseq/distributed/utils.py:313
↓ 1 callersFunctiondo_setup
(package_data)
setup.py:167
↓ 1 callersFunctionedit_distance2_backtracking
fairseq/clib/libnat/edit_dist.cpp:45
↓ 1 callersFunctionedit_distance2_backtracking_with_delete
fairseq/clib/libnat/edit_dist.cpp:116
↓ 1 callersMethodenable_ensemble
(self, models)
fairseq/models/nat/fairseq_nat_model.py:117
↓ 1 callersFunctionencode
(l)
scripts/spm_encode.py:52
↓ 1 callersMethodencode
BPE-encode a sentence (or multiple sentences). Every sequence begins with a beginning-of-sentence (`<s>`) symbol. Every sent
fairseq/models/bart/hub_interface.py:33
↓ 1 callersFunctionencode_fn_target
(x)
fairseq_cli/interactive.py:56
↓ 1 callersMethodend_of_epoch
(self)
fairseq/data/iterators.py:209
↓ 1 callersMethodestimate_global_pass_epoch
(self, epoch)
fairseq/data/multilingual/multilingual_data_manager.py:309
↓ 1 callersFunctioneval_lm
Args: models (List[~fairseq.models.FairseqModel]): list of models to evaluate. Models are essentially `nn.Module` instances,
fairseq_cli/eval_lm.py:37
↓ 1 callersMethodeval_lm_dataloader
( self, dataset, max_tokens: Optional[int] = 36000, batch_size: Optional[int]
fairseq/tasks/language_modeling.py:315
↓ 1 callersFunctionevery_n_checkpoints
(files, n)
scripts/rm_pt.py:37
↓ 1 callersFunctionexpand_2d_or_3d_tensor
Expand 2D/3D tensor on dim=1
fairseq/models/model_utils.py:37
↓ 1 callersMethodextract_features
Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary wi
fairseq/models/fairseq_decoder.py:42
↓ 1 callersMethodextract_features
( self, prev_output_tokens, encoder_out: Optional[Dict[str, List[Tensor]]], in
fairseq/models/transformer.py:773
↓ 1 callersMethodextract_features
Similar to *forward* but only return features.
fairseq/models/lstm.py:481
↓ 1 callersMethodextract_features
(self, src_tokens, return_all_hiddens=False, **kwargs)
fairseq/models/roberta/model.py:479
↓ 1 callersMethodextract_features
( self, tokens: torch.LongTensor, return_all_hiddens: bool = False )
fairseq/models/bart/hub_interface.py:117
↓ 1 callersMethodextract_features
Similar to *forward* but only return features. Inputs: prev_output_tokens: Tensor(B, T) encoder_out: a dicti
fairseq/models/nat/nonautoregressive_transformer.py:263
↓ 1 callersMethodextract_features
( self, prev_output_tokens, incremental_state: Optional[Dict[str, List[torch.Tensor]]]
fairseq/models/huggingface/hf_gpt2.py:97
↓ 1 callersMethodextract_features
(self, x, padding_mask=None)
fairseq/models/wav2vec/wav2vec2.py:759
↓ 1 callersMethodfinalize_hypos
Finalize hypothesis, store finalized information in `finalized`, and change `finished` accordingly. A sentence is finalized when {beam_size} f
fairseq/sequence_generator.py:587
↓ 1 callersMethodforward
(self, x, produce_targets=False)
fairseq/modules/gumbel_vector_quantizer.py:141
↓ 1 callersMethodforward
(self, x, produce_targets=False)
fairseq/modules/kmeans_vector_quantizer.py:72
↓ 1 callersMethodforward
(self, x, incremental_state=None)
fairseq/modules/lightconv_layer/lightconv_layer.py:75
↓ 1 callersMethodforward
(self, x, incremental_state=None, query=None, unfold=None)
fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:77
↓ 1 callersMethodforward
(self, src_tokens, src_lengths)
fairseq/models/fconv_self_att.py:234
↓ 1 callersMethodforward
(self, *args, **kwargs)
fairseq/models/nat/fairseq_nat_model.py:153
↓ 1 callersMethodforward
(self, source, padding_mask=None, mask=True, features_only=False)
fairseq/models/wav2vec/wav2vec2.py:461
↓ 1 callersMethodforward_align
(self, src_tokens, src_lengths, prev_output_tokens)
fairseq/sequence_generator.py:957
↓ 1 callersMethodforward_decoder
( self, prev_output_tokens, encoder_out=None, incremental_state=None,
fairseq/models/transformer_align.py:53
↓ 1 callersMethodforward_embedding
( self, src_tokens, token_embedding: Optional[torch.Tensor] = None )
fairseq/models/transformer.py:391
↓ 1 callersMethodforward_embedding
( self, src_tokens, token_embedding: Optional[torch.Tensor] = None )
fairseq/models/nat/nonautoregressive_transformer.py:493
↓ 1 callersMethodforward_idx
(self, x)
fairseq/modules/gumbel_vector_quantizer.py:137
↓ 1 callersMethodforward_mask_ins
( self, encoder_outs, output_tokens, output_scores, can_ins_mask,
fairseq/models/nat/nonautoregressive_ensembles.py:178
↓ 1 callersMethodforward_non_torchscript
(self, net_input: Dict[str, Tensor])
fairseq/models/fairseq_encoder.py:58
↓ 1 callersMethodforward_scriptable
Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths
fairseq/models/transformer.py:446
↓ 1 callersMethodforward_torchscript
A TorchScript-compatible version of forward. Encoders which use additional arguments may want to override this method for TorchScript
fairseq/models/fairseq_encoder.py:43
↓ 1 callersMethodforward_word_del
( self, encoder_outs, output_tokens, output_scores, attn, can_del_word )
fairseq/models/nat/nonautoregressive_ensembles.py:142
↓ 1 callersMethodforward_word_ins
( self, encoder_outs, output_tokens, output_scores, attn, can_ins_word )
fairseq/models/nat/nonautoregressive_ensembles.py:216
↓ 1 callersMethodfrom_config_dict
(cls, config: Optional[Dict] = None)
fairseq/data/audio/feature_transforms/__init__.py:10
↓ 1 callersMethodfrom_config_dict
(cls, config=None)
fairseq/data/audio/feature_transforms/global_cmvn.py:14
↓ 1 callersMethodfrom_pretrained
( cls, model_name_or_path, checkpoint_file="model.pt", data_name_or_path=".",
fairseq/models/bart/model.py:117
↓ 1 callersMethodfrom_tsv
( cls, root: str, data_cfg: S2TDataConfig, splits: str, tgt_dict,
fairseq/data/audio/speech_to_text_dataset.py:474
↓ 1 callersFunctiongen_backward
()
fairseq/modules/lightconv_layer/cuda_function_gen.py:116
↓ 1 callersFunctiongen_backward
()
fairseq/modules/dynamicconv_layer/cuda_function_gen.py:96
↓ 1 callersFunctiongen_forward
()
fairseq/modules/lightconv_layer/cuda_function_gen.py:7
↓ 1 callersFunctiongen_forward
()
fairseq/modules/dynamicconv_layer/cuda_function_gen.py:7
↓ 1 callersMethodgenerate
(self, models, sample, prefix_tokens=None, constraints=None)
fairseq/iterative_refinement_generator.py:102
↓ 1 callersMethodgenerate
Score a batch of translations.
fairseq/sequence_scorer.py:35
↓ 1 callersMethodgenerate
Generate translations. Match the api of other fairseq generators. Args: models (List[~fairseq.models.FairseqModel]): ensemble of
fairseq/sequence_generator.py:169
↓ 1 callersFunctionget_audio_feature_transform
(name)
fairseq/data/audio/feature_transforms/__init__.py:39
↓ 1 callersMethodget_batch_shapes
Return a list of valid batch shapes, for example:: [(8, 512), (16, 256), (32, 128)] The first dimension of each tuple i
fairseq/data/fairseq_dataset.py:87
↓ 1 callersFunctionget_default
(f)
fairseq/dataclass/utils.py:204
↓ 1 callersMethodget_encoder_langtok
(self, src_lang, tgt_lang)
fairseq/tasks/multilingual_translation.py:160
↓ 1 callersMethodget_extra_losses
(self, net_output)
fairseq/models/wav2vec/wav2vec.py:344
↓ 1 callersMethodget_feature_transforms
Split-specific feature transforms. Allowing train set wildcard `_train`, evaluation set wildcard `_eval` and general wildcard `*` for matching
fairseq/data/audio/speech_to_text_dataset.py:108
↓ 1 callersFunctionget_features_from_npy_or_audio
(path)
fairseq/data/audio/speech_to_text_dataset.py:140
↓ 1 callersFunctionget_features_or_waveform_from_uncompressed_zip
( path, byte_offset, byte_size, need_waveform=False )
fairseq/data/audio/speech_to_text_dataset.py:147
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
fairseq/file_utils.py:262
↓ 1 callersFunctionget_from_stack
(key)
fairseq/distributed/utils.py:667
↓ 1 callersFunctionget_fused_adam_class
Look for the FusedAdam optimizer from apex. We first try to load the "contrib" interface, which is a bit faster than the main interface,
fairseq/optim/fused_adam.py:11
↓ 1 callersFunctionget_generation_parser
(interactive=False, default_task="translation")
fairseq/options.py:45
↓ 1 callersFunctionget_global_world_size
()
fairseq/distributed/utils.py:436
↓ 1 callersMethodget_interactive_tokens_and_lengths
(self, lines, encode_fn)
fairseq/tasks/fairseq_task.py:591
↓ 1 callersFunctionget_kwargs_from_dc
k: dataclass attributes
fairseq/dataclass/utils.py:67
↓ 1 callersMethodget_logits
(self, net_output)
fairseq/models/wav2vec/wav2vec.py:328
↓ 1 callersMethodget_lr
Get the current learning rate.
fairseq/trainer.py:865
↓ 1 callersMethodget_lr
(self)
fairseq/optim/fp16_optimizer.py:316
↓ 1 callersFunctionget_meter
Get a single Meter instance aggregated under *name* and *key*. Returns: Meter or None if no metrics have been logged under *name* and *ke
fairseq/logging/metrics.py:243
↓ 1 callersMethodget_meter
[deprecated] Get a specific meter by name.
fairseq/trainer.py:877
↓ 1 callersFunctionget_meters
Get Meter instances aggregated under a given *name*. Returns: MetersDict or None if no metrics have been logged under *name*.
fairseq/logging/metrics.py:254
↓ 1 callersFunctionget_model_parallel_rank
Return my rank for the model parallel group.
fairseq/distributed/utils.py:476
↓ 1 callersFunctionget_model_parallel_world_size
Return world size for the model parallel group.
fairseq/distributed/utils.py:481
↓ 1 callersMethodget_next_lr
(self, epoch)
fairseq/optim/lr_scheduler/manual_lr_scheduler.py:82
↓ 1 callersMethodget_next_lr
(self, epoch)
fairseq/optim/lr_scheduler/polynomial_decay_schedule.py:58
↓ 1 callersMethodget_next_lr
(self, epoch)
fairseq/optim/lr_scheduler/fixed_schedule.py:51
↓ 1 callersMethodget_normalized_probs
Get normalized probabilities (or log probs) from a net's output.
fairseq/models/fairseq_model.py:54
↓ 1 callersMethodget_normalized_probs_scriptable
Scriptable helper function for get_normalized_probs in ~BaseFairseqModel
fairseq/models/fairseq_model.py:67
↓ 1 callersMethodget_out_seq_lens_tensor
(self, in_seq_lens_tensor)
fairseq/models/speech_to_text/s2t_transformer.py:61
↓ 1 callersFunctionget_parser
()
fairseq_cli/score.py:18
← previousnext →801–900 of 3,098, ranked by callers