MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

Methodexpand_embedding
(self)
fairseq/modules/kmeans_vector_quantizer.py:63
Methodextra_repr
(self)
fairseq/modules/dynamic_convolution.py:294
Methodextra_repr
(self)
fairseq/modules/lightweight_convolution.py:299
Methodextra_repr
(self)
fairseq/modules/dynamic_crf_layer.py:52
Methodextra_repr
(self)
fairseq/modules/quantization/pq/modules/qemb.py:93
Methodextra_repr
(self)
fairseq/modules/quantization/pq/modules/qlinear.py:66
Methodextra_repr
(self)
fairseq/modules/quantization/pq/modules/qconv.py:102
Methodextra_repr
(self)
fairseq/modules/quantization/scalar/modules/qemb.py:134
Methodextra_repr
(self)
fairseq/modules/quantization/scalar/modules/qlinear.py:105
Methodextra_repr
(self)
fairseq/modules/quantization/scalar/modules/qconv.py:132
Methodextra_repr
(self)
fairseq/models/lightconv.py:716
Methodextra_repr
(self)
fairseq/models/lightconv.py:879
Methodextract_features
Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary wi
fairseq/models/fairseq_incremental_decoder.py:62
Methodextract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/fairseq_model.py:320
Methodextract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/fairseq_model.py:491
Methodextract_features
( self, prev_output_tokens, encoder_out: Optional[Dict[str, List[Tensor]]] = None,
fairseq/models/speech_to_text/s2t_transformer.py:353
Methodextract_features
( self, prev_output_tokens, encoder_out: Optional[Dict[str, List[Tensor]]], in
fairseq/models/speech_to_text/convtransformer.py:378
Methodextract_features
(self, source, padding_mask, mask=False)
fairseq/models/wav2vec/wav2vec2.py:591
Methodextract_features_aligned_to_words
Extract RoBERTa features, aligned to spaCy's word-level tokenizer.
fairseq/models/roberta/hub_interface.py:119
Functionextract_hard_alignment
(attn, src_sent, tgt_sent, pad, eos)
fairseq/utils.py:612
Functionextract_soft_alignment
(attn, src_sent, tgt_sent, pad, eos)
fairseq/utils.py:636
Functionfconv_iwslt_de_en
(args)
fairseq/models/fconv.py:714
Functionfconv_lm_dauphin_gbw
(args)
fairseq/models/fconv_lm.py:123
Functionfconv_lm_dauphin_wikitext103
(args)
fairseq/models/fconv_lm.py:105
Functionfconv_self_att_wp
(args)
fairseq/models/fconv_self_att.py:657
Functionfconv_wmt_en_de
(args)
fairseq/models/fconv.py:730
Functionfconv_wmt_en_fr
(args)
fairseq/models/fconv.py:744
Functionfconv_wmt_en_ro
(args)
fairseq/models/fconv.py:724
Methodfhook_fn
(self, module, inp, output)
fairseq/nan_detector.py:98
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``EnvironmentError`` if `filename` or its stored metadata do not
fairseq/file_utils.py:116
Methodfill_mask
(self, masked_input: str, topk: int = 5)
fairseq/models/roberta/hub_interface.py:156
Methodfill_mask
( self, masked_inputs: List[str], topk: int = 5, match_source_len: bool = True
fairseq/models/bart/hub_interface.py:171
Functionfill_tensors
Filling tensor x with y at masked positions (dim=0).
fairseq/models/model_utils.py:63
Functionfill_with_neg_inf
FP16-compatible function that fills a tensor with -inf.
fairseq/utils.py:370
Functionfilter_by_size
[deprecated] Filter indices based on their size. Use `FairseqDataset::filter_indices_by_size` instead. Args: indices (List[int])
fairseq/data/data_utils.py:183
Methodfilter_indices_by_size
Filter a list of sample indices. Remove those that are longer than specified in max_sizes. Args: indices (np.array):
fairseq/data/language_pair_dataset.py:456
Methodfilter_indices_by_size
Filter a list of sample indices. Remove those that are longer than specified in *max_sizes*. WARNING: don't update, override
fairseq/data/fairseq_dataset.py:155
Methodfilter_indices_by_size
Filter each sub-dataset independently, then update the round robin to work on the filtered sub-datasets.
fairseq/data/round_robin_zip_datasets.py:115
Methodfilter_indices_by_size
(self, indices, max_sizes)
fairseq/data/base_wrapper_dataset.py:68
Methodfilter_indices_by_size
Filter a list of sample indices. Remove those that are longer than specified in max_sizes. Args: indices (np.array):
fairseq/data/multilingual/sampled_multi_dataset.py:446
Methodfilter_indices_by_size
( self, indices, dataset, max_positions=None, ignore_invalid_inputs=Fa
fairseq/tasks/audio_pretraining.py:181
Functionfilter_paired_dataset_indices_by_size
Filter a list of sample indices. Remove those that are longer than specified in max_sizes. Args: indices (np.array): original arr
fairseq/data/data_utils.py:236
Methodfinalize
(self, index_file)
fairseq/data/indexed_dataset.py:359
Methodfinalize
(self, index_file)
fairseq/data/indexed_dataset.py:572
Methodfinalized_hypos
(step, prev_out_token, prev_out_score, prev_out_attn)
fairseq/iterative_refinement_generator.py:176
Methodfinished
(self)
fairseq/token_generation_constraints.py:272
Methodfinished
(self)
fairseq/token_generation_constraints.py:435
Methodfirst_batch
(self)
fairseq/data/iterators.py:146
Methodfirst_batch
(self)
fairseq/data/iterators.py:333
Methodforward
Generate a batch of translations. Args: sample (dict): batch prefix_tokens (torch.LongTensor, optional): force decode
fairseq/sequence_generator.py:118
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/adaptive_loss.py:43
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as t
fairseq/criterions/legacy_masked_lm.py:73
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/sentence_prediction.py:29
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/cross_entropy.py:27
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/wav2vec_criterion.py:44
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py:34
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/masked_lm.py:24
Methodforward
(self, **unused)
fairseq/criterions/composite_loss.py:48
Methodforward
(self, model, sample, reduce=True)
fairseq/criterions/composite_loss.py:68
Methodforward
(self, model, sample, reduce=True)
fairseq/criterions/ctc.py:105
Methodforward
(self, model, sample, reduce=True)
fairseq/criterions/model_criterion.py:49
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/label_smoothed_cross_entropy.py:71
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as t
fairseq/criterions/nat_loss.py:80
Methodforward
Compute the loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used as
fairseq/criterions/fairseq_criterion.py:62
Methodforward
Compute ranking loss for the given sample. Returns a tuple with three elements: 1) the loss 2) the sample size, which is used
fairseq/criterions/sentence_ranking.py:39
Methodforward
Assuming the input, x, of the shape T x B x C and producing an output in the shape T x B x C args: x: Input of shape T x B x C, i.
fairseq/modules/dynamic_convolution.py:147
Methodforward
(ctx, run_function, parent_ctx_dict, kwarg_keys, *args)
fairseq/modules/checkpoint_activations.py:139
Methodforward
(self, x)
fairseq/modules/transpose_last.py:17
Methodforward
Input is expected to be of size [bsz x seqlen].
fairseq/modules/sinusoidal_positional_embedding.py:60
Methodforward
(ctx, x, scale)
fairseq/modules/grad_multiply.py:11
Methodforward
input size: B x C x T output size: B x C x T
fairseq/modules/lightweight_convolution.py:105
Methodforward
Assuming the input, x, of the shape T x B x C and producing an output in the shape T x B x C args: x: Input of shape T x B x C, i.
fairseq/modules/lightweight_convolution.py:187
Methodforward
(self, input)
fairseq/modules/adaptive_softmax.py:22
Methodforward
(self, input)
fairseq/modules/adaptive_softmax.py:50
Methodforward
Args: input: (b x t x d) target: (b x t) Returns: 2 lists: output for each cutoff section and new
fairseq/modules/adaptive_softmax.py:205
Methodforward
( self, tokens: torch.Tensor, segment_labels: torch.Tensor = None, last_state_
fairseq/modules/transformer_sentence_encoder.py:222
Methodforward
Args: incremental_state: Used to buffer signal; if not None, then input is expected to contain a single frame. If
fairseq/modules/linearized_convolution.py:44
Methodforward
Input is expected to be of size [bsz x seqlen].
fairseq/modules/learned_positional_embedding.py:31
Methodforward
(self, input: Tensor)
fairseq/modules/conv_tbc.py:42
Methodforward
Args: x (Tensor): input to the layer of shape `(seq_len, batch, embed_dim)` encoder_padding_mask (ByteTensor): binary
fairseq/modules/transformer_layer.py:106
Methodforward
Args: x (Tensor): input to the layer of shape `(seq_len, batch, embed_dim)` encoder_padding_mask (ByteTensor, optiona
fairseq/modules/transformer_layer.py:279
Methodforward
(self, input1, input2)
fairseq/modules/beamable_mm.py:23
Methodforward
Input shape: Time x Batch x Channel Self-attention can be implemented by passing in the same arguments for query, key and value. Futur
fairseq/modules/downsampled_multihead_attention.py:74
Methodforward
( self, query, key, value, mask_future_timesteps=False, key_pa
fairseq/modules/downsampled_multihead_attention.py:230
Methodforward
(self, x)
fairseq/modules/downsampled_multihead_attention.py:296
Methodforward
Compute the conditional log-likelihood of a sequence of target tokens given emission scores Args: emissions (`~torch.Ten
fairseq/modules/dynamic_crf_layer.py:57
Methodforward
LayerNorm is applied either before or after the self-attention/ffn modules similar to the original Transformer implementation.
fairseq/modules/transformer_sentence_encoder_layer.py:109
Methodforward
(ctx, input, dim, bias_init)
fairseq/modules/scalar_bias.py:17
Methodforward
(self, x)
fairseq/modules/layer_norm.py:18
Methodforward
(self, x)
fairseq/modules/vggblock.py:113
Methodforward
(self, x)
fairseq/modules/same_pad.py:18
Methodforward
(self, input)
fairseq/modules/fp32_group_norm.py:17
Methodforward
(self, input: torch.Tensor)
fairseq/modules/adaptive_input.py:69
Methodforward
( self, input: torch.Tensor, )
fairseq/modules/character_token_embedder.py:107
Methodforward
(self, x: torch.Tensor)
fairseq/modules/character_token_embedder.py:207
Methodforward
(self, x, inplace: bool = False)
fairseq/modules/fairseq_dropout.py:23
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
fairseq/modules/multihead_attention.py:114
Methodforward
(ctx, x, weights, padding_l)
fairseq/modules/lightconv_layer/lightconv_layer.py:18
Methodforward
(self, input)
fairseq/modules/quantization/pq/modules/qemb.py:82
Methodforward
(self, x)
fairseq/modules/quantization/pq/modules/qlinear.py:59
← previousnext →2,001–2,100 of 3,098, ranked by callers