Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ functions
Functions
3,098 in github.com/FLC777/GLAT
⨍
Functions
3,098
◇
Types & classes
478
↳
Endpoints
1
Method
expand_embedding
(self)
fairseq/modules/kmeans_vector_quantizer.py:63
Method
extra_repr
(self)
fairseq/modules/dynamic_convolution.py:294
Method
extra_repr
(self)
fairseq/modules/lightweight_convolution.py:299
Method
extra_repr
(self)
fairseq/modules/dynamic_crf_layer.py:52
Method
extra_repr
(self)
fairseq/modules/quantization/pq/modules/qemb.py:93
Method
extra_repr
(self)
fairseq/modules/quantization/pq/modules/qlinear.py:66
Method
extra_repr
(self)
fairseq/modules/quantization/pq/modules/qconv.py:102
Method
extra_repr
(self)
fairseq/modules/quantization/scalar/modules/qemb.py:134
Method
extra_repr
(self)
fairseq/modules/quantization/scalar/modules/qlinear.py:105
Method
extra_repr
(self)
fairseq/modules/quantization/scalar/modules/qconv.py:132
Method
extra_repr
(self)
fairseq/models/lightconv.py:716
Method
extra_repr
(self)
fairseq/models/lightconv.py:879
Method
extract_features
Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary wi
fairseq/models/fairseq_incremental_decoder.py:62
Method
extract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/fairseq_model.py:320
Method
extract_features
Similar to *forward* but only return features. Returns: tuple: - the decoder's features of shape `(batch
fairseq/models/fairseq_model.py:491
Method
extract_features
( self, prev_output_tokens, encoder_out: Optional[Dict[str, List[Tensor]]] = None,
fairseq/models/speech_to_text/s2t_transformer.py:353
Method
extract_features
( self, prev_output_tokens, encoder_out: Optional[Dict[str, List[Tensor]]], in
fairseq/models/speech_to_text/convtransformer.py:378
Method
extract_features
(self, source, padding_mask, mask=False)
fairseq/models/wav2vec/wav2vec2.py:591
Method
extract_features_aligned_to_words
Extract RoBERTa features, aligned to spaCy's word-level tokenizer.
fairseq/models/roberta/hub_interface.py:119
Function
extract_hard_alignment
(attn, src_sent, tgt_sent, pad, eos)
fairseq/utils.py:612
Function
extract_soft_alignment
(attn, src_sent, tgt_sent, pad, eos)
fairseq/utils.py:636
Function
fconv_iwslt_de_en
(args)
fairseq/models/fconv.py:714
Function
fconv_lm_dauphin_gbw
(args)
fairseq/models/fconv_lm.py:123
Function
fconv_lm_dauphin_wikitext103
(args)
fairseq/models/fconv_lm.py:105
Function
fconv_self_att_wp
(args)
fairseq/models/fconv_self_att.py:657
Function
fconv_wmt_en_de
(args)
fairseq/models/fconv.py:730
Function
fconv_wmt_en_fr
(args)
fairseq/models/fconv.py:744
Function
fconv_wmt_en_ro
(args)
fairseq/models/fconv.py:724
Method
fhook_fn
(self, module, inp, output)
fairseq/nan_detector.py:98
Function
filename_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
Method
fill_mask
(self, masked_input: str, topk: int = 5)
fairseq/models/roberta/hub_interface.py:156
Method
fill_mask
( self, masked_inputs: List[str], topk: int = 5, match_source_len: bool = True
fairseq/models/bart/hub_interface.py:171
Function
fill_tensors
Filling tensor x with y at masked positions (dim=0).
fairseq/models/model_utils.py:63
Function
fill_with_neg_inf
FP16-compatible function that fills a tensor with -inf.
fairseq/utils.py:370
Function
filter_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
Method
filter_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
Method
filter_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
Method
filter_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
Method
filter_indices_by_size
(self, indices, max_sizes)
fairseq/data/base_wrapper_dataset.py:68
Method
filter_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
Method
filter_indices_by_size
( self, indices, dataset, max_positions=None, ignore_invalid_inputs=Fa
fairseq/tasks/audio_pretraining.py:181
Function
filter_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
Method
finalize
(self, index_file)
fairseq/data/indexed_dataset.py:359
Method
finalize
(self, index_file)
fairseq/data/indexed_dataset.py:572
Method
finalized_hypos
(step, prev_out_token, prev_out_score, prev_out_attn)
fairseq/iterative_refinement_generator.py:176
Method
finished
(self)
fairseq/token_generation_constraints.py:272
Method
finished
(self)
fairseq/token_generation_constraints.py:435
Method
first_batch
(self)
fairseq/data/iterators.py:146
Method
first_batch
(self)
fairseq/data/iterators.py:333
Method
forward
Generate a batch of translations. Args: sample (dict): batch prefix_tokens (torch.LongTensor, optional): force decode
fairseq/sequence_generator.py:118
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, **unused)
fairseq/criterions/composite_loss.py:48
Method
forward
(self, model, sample, reduce=True)
fairseq/criterions/composite_loss.py:68
Method
forward
(self, model, sample, reduce=True)
fairseq/criterions/ctc.py:105
Method
forward
(self, model, sample, reduce=True)
fairseq/criterions/model_criterion.py:49
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(ctx, run_function, parent_ctx_dict, kwarg_keys, *args)
fairseq/modules/checkpoint_activations.py:139
Method
forward
(self, x)
fairseq/modules/transpose_last.py:17
Method
forward
Input is expected to be of size [bsz x seqlen].
fairseq/modules/sinusoidal_positional_embedding.py:60
Method
forward
(ctx, x, scale)
fairseq/modules/grad_multiply.py:11
Method
forward
input size: B x C x T output size: B x C x T
fairseq/modules/lightweight_convolution.py:105
Method
forward
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
Method
forward
(self, input)
fairseq/modules/adaptive_softmax.py:22
Method
forward
(self, input)
fairseq/modules/adaptive_softmax.py:50
Method
forward
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
Method
forward
( self, tokens: torch.Tensor, segment_labels: torch.Tensor = None, last_state_
fairseq/modules/transformer_sentence_encoder.py:222
Method
forward
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
Method
forward
Input is expected to be of size [bsz x seqlen].
fairseq/modules/learned_positional_embedding.py:31
Method
forward
(self, input: Tensor)
fairseq/modules/conv_tbc.py:42
Method
forward
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
Method
forward
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
Method
forward
(self, input1, input2)
fairseq/modules/beamable_mm.py:23
Method
forward
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
Method
forward
( self, query, key, value, mask_future_timesteps=False, key_pa
fairseq/modules/downsampled_multihead_attention.py:230
Method
forward
(self, x)
fairseq/modules/downsampled_multihead_attention.py:296
Method
forward
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
Method
forward
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
Method
forward
(ctx, input, dim, bias_init)
fairseq/modules/scalar_bias.py:17
Method
forward
(self, x)
fairseq/modules/layer_norm.py:18
Method
forward
(self, x)
fairseq/modules/vggblock.py:113
Method
forward
(self, x)
fairseq/modules/same_pad.py:18
Method
forward
(self, input)
fairseq/modules/fp32_group_norm.py:17
Method
forward
(self, input: torch.Tensor)
fairseq/modules/adaptive_input.py:69
Method
forward
( self, input: torch.Tensor, )
fairseq/modules/character_token_embedder.py:107
Method
forward
(self, x: torch.Tensor)
fairseq/modules/character_token_embedder.py:207
Method
forward
(self, x, inplace: bool = False)
fairseq/modules/fairseq_dropout.py:23
Method
forward
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
Method
forward
(ctx, x, weights, padding_l)
fairseq/modules/lightconv_layer/lightconv_layer.py:18
Method
forward
(self, input)
fairseq/modules/quantization/pq/modules/qemb.py:82
Method
forward
(self, x)
fairseq/modules/quantization/pq/modules/qlinear.py:59
← previous
next →
2,001–2,100 of 3,098, ranked by callers