MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 3 callersMethodall_reduce_grads
(self, module)
fairseq/optim/fp16_optimizer.py:322
↓ 3 callersMethodapply_mask
(self, x, padding_mask)
fairseq/models/wav2vec/wav2vec2.py:333
↓ 3 callersFunctionbase_architecture
(args)
fairseq/models/masked_lm.py:314
↓ 3 callersFunctionbase_architecture
(args)
fairseq/models/lstm.py:699
↓ 3 callersFunctionbase_lm_architecture
(args)
fairseq/model_parallel/models/transformer_lm.py:91
↓ 3 callersFunctionbase_lm_architecture
(args)
fairseq/models/fconv_lm.py:95
↓ 3 callersFunctionberard
The original version: "End-to-End Automatic Speech Translation of Audiobooks" (https://arxiv.org/abs/1802.04200)
fairseq/models/speech_to_text/berard.py:547
↓ 3 callersMethodbuild_criterion
Build the :class:`~fairseq.criterions.FairseqCriterion` instance for this task. Args: cfg (omegaconf.DictConfig)
fairseq/tasks/fairseq_task.py:327
↓ 3 callersMethodbuild_dataset_for_inference
(self, src_tokens, src_lengths, sort=True)
fairseq/tasks/masked_lm.py:225
↓ 3 callersFunctionbuild_dictionary
(filenames, src=False, tgt=False)
fairseq_cli/preprocess.py:61
↓ 3 callersMethodbuild_embedding
(cls, args, dictionary, embed_dim, path=None)
fairseq/models/transformer.py:246
↓ 3 callersMethodbuild_model
Build a new model instance.
fairseq/models/lstm.py:86
↓ 3 callersMethodbuild_shared_embeddings
Helper function to build shared embeddings for a set of languages after checking that all dicts corresponding to those languages are
fairseq/models/fairseq_model.py:377
↓ 3 callersFunctionbyte_decode
(x: str)
fairseq/data/encoders/byte_utils.py:27
↓ 3 callersFunctioncheckpoint_paths
Retrieves all checkpoints found in `path` directory. Checkpoints are identified by matching filename to the specified pattern. If the pattern
fairseq/checkpoint_utils.py:367
↓ 3 callersMethodcompute_distances
For every centroid m, computes ||M - m[None, :]||_2 Remarks: - We rely on PyTorch's broadcast
fairseq/modules/quantization/pq/em.py:133
↓ 3 callersFunctionconsumer
(tensor)
fairseq_cli/preprocess.py:343
↓ 3 callersFunctiondataset_dest_prefix
(args, output_prefix, lang)
fairseq_cli/preprocess.py:370
↓ 3 callersMethoddecode
(x: str)
fairseq/data/encoders/bytes.py:32
↓ 3 callersFunctiondecode_fn
(x)
fairseq_cli/generate.py:175
↓ 3 callersFunctionedit_distance2_with_dp
fairseq/clib/libnat/edit_dist.cpp:23
↓ 3 callersMethodend_of_epoch
Returns whether the most recent epoch iterator has been exhausted
fairseq/data/iterators.py:398
↓ 3 callersFunctioneval_str_list
(x, x_type=float)
fairseq/dataclass/utils.py:25
↓ 3 callersMethodextract_features_scriptable
Similar to *forward* but only return features. Includes several features from "Jointly Learning to Align and Translate with
fairseq/models/transformer.py:797
↓ 3 callersFunctionfasta_file_path
(prefix_path)
fairseq/data/fasta_dataset.py:15
↓ 3 callersMethodfind_offsets
(filename, num_chunks)
fairseq/binarizer.py:105
↓ 3 callersMethodforward_length
(self, normalize, encoder_out)
fairseq/models/nat/nonautoregressive_transformer.py:249
↓ 3 callersMethodforward_length_prediction
(self, length_out, encoder_out, tgt_tokens=None)
fairseq/models/nat/nonautoregressive_transformer.py:392
↓ 3 callersFunctionget_available_dataset_impl
()
fairseq/data/indexed_dataset.py:37
↓ 3 callersMethodget_decoder_langtok
(self, tgt_lang, spec=None)
fairseq/data/multilingual/multilingual_data_manager.py:478
↓ 3 callersFunctionget_encoder
(encoder_json_path, vocab_bpe_path)
fairseq/data/encoders/gpt2_bpe_utils.py:131
↓ 3 callersMethodget_encoder_langtok
(self, src_lang, tgt_lang, spec=None)
fairseq/data/multilingual/multilingual_data_manager.py:459
↓ 3 callersFunctionget_global_group
()
fairseq/distributed/utils.py:414
↓ 3 callersMethodget_normalized_probs
(self, net_output, log_probs, sample=None)
fairseq/criterions/composite_loss.py:51
↓ 3 callersMethodget_smoothed_value
Get a single smoothed value.
fairseq/logging/meters.py:259
↓ 3 callersFunctionget_symbols_to_strip_from_output
(generator)
fairseq_cli/generate.py:52
↓ 3 callersMethodget_train_iterator
Return an EpochBatchIterator over the training set for a given epoch.
fairseq/trainer.py:427
↓ 3 callersFunctionget_waveform
Get the waveform and sample rate of a 16-bit mono-channel WAV or FLAC. Args: path_or_fp (str or BinaryIO): the path or file-like object
fairseq/data/audio/audio_utils.py:7
↓ 3 callersFunctionget_whole_word_mask
(args, dictionary)
fairseq/data/encoders/utils.py:10
↓ 3 callersMethodhas_encoder
(self)
fairseq/sequence_generator.py:744
↓ 3 callersMethodhas_next
Whether the iterator has been exhausted.
fairseq/data/iterators.py:75
↓ 3 callersMethodhas_sharded_data
(self, split)
fairseq/tasks/fairseq_task.py:133
↓ 3 callersFunctionimport_pipe
()
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:45
↓ 3 callersMethodlr_step
Adjust the learning rate at the end of the epoch.
fairseq/trainer.py:848
↓ 3 callersMethodlr_step_update
Update the learning rate after each update.
fairseq/trainer.py:854
↓ 3 callersMethodls
(path: str)
fairseq/file_io.py:97
↓ 3 callersFunctionmake_binary_alignment_dataset
(input_prefix, output_prefix, num_workers)
fairseq_cli/preprocess.py:186
↓ 3 callersFunctionmake_dataset
(vocab, input_prefix, output_prefix, lang, num_workers=1)
fairseq_cli/preprocess.py:239
↓ 3 callersMethodmask
Helper to get index of mask symbol
fairseq/data/legacy/masked_lm_dictionary.py:27
↓ 3 callersFunctionparse_lambda_config
Parse the configuration of lambda coefficient (for scheduling). x = "3" # lambda will be a constant equal to x x = "0:1,
fairseq/tasks/semisupervised_translation.py:41
↓ 3 callersMethodpath_requires_pathmanager
Do we require PathManager to access given path?
fairseq/file_io.py:135
↓ 3 callersFunctionpopulate_dataclass
( dataclass: FairseqDataclass, args: Namespace, )
fairseq/dataclass/utils.py:408
↓ 3 callersMethodprepare
(cls, args, **kargs)
fairseq/tasks/multilingual_translation.py:132
↓ 3 callersFunctionprint_keys
(ks, ns1, ns2=None)
scripts/compare_namespaces.py:22
↓ 3 callersFunctionquantize
(w, scale, zero_point)
fairseq/modules/quantization/scalar/ops.py:14
↓ 3 callersFunctionread_longs
(f, n)
fairseq/data/indexed_dataset.py:96
↓ 3 callersMethodregister_classification_head
Register a classification head.
fairseq/models/bart/model.py:140
↓ 3 callersMethodreorder_encoder_out
(self, encoder_out, new_order)
fairseq/models/lstm.py:332
↓ 3 callersMethodreplicate_first_beam
(self, tensor, mask, beam_size: int)
fairseq/sequence_generator.py:582
↓ 3 callersMethodreset
(self, init=0, n=0)
fairseq/logging/meters.py:124
↓ 3 callersMethodresidual_connection
(self, x, residual)
fairseq/modules/transformer_layer.py:276
↓ 3 callersMethodresult_string
(self, order=4)
fairseq/scoring/bleu.py:152
↓ 3 callersMethodsample
( self, sentences: List[str], beam: int = 1, verbose: bool = False, **kwargs )
fairseq/hub_utils.py:126
↓ 3 callersFunctionsplit_non_tensors
Usage:: x = torch.Tensor([1]) y = torch.Tensor([2]) tensors, packed_non_tensors = split_non_tensors((x, y, None, 3))
fairseq/modules/checkpoint_activations.py:82
↓ 3 callersMethodstate_dict
(self)
fairseq/optim/bmuf.py:58
↓ 3 callersMethodstep_update
Called at the end of each step.
fairseq/quantization_utils.py:118
↓ 3 callersMethodtoken_counts
Returns a counter of the number of times each token is used in a constraint.
fairseq/token_generation_constraints.py:164
↓ 3 callersFunctiontransformer_vaswani_wmt_en_de_big
(args)
fairseq/models/transformer.py:1090
↓ 3 callersFunctionunfold1d
unfold T x B x C to T x B x C x K
fairseq/modules/unfold.py:9
↓ 3 callersFunctionunpack_constraints
Transforms *one row* of a packed constraint tensor (e.g., for one sentence in the batch) into a list of constraint tensors.
fairseq/token_generation_constraints.py:94
↓ 3 callersMethodupdate
Updates the running statistics when quantizing a new layer.
fairseq/modules/quantization/pq/utils.py:287
↓ 3 callersMethodupdate
(self)
fairseq/optim/dynamic_loss_scaler.py:31
↓ 3 callersFunctionupdate_sample
(doc)
scripts/split_train_valid_docs.py:33
↓ 3 callersMethodupgrade_state_dict
Upgrade old state dicts to work with newer code.
fairseq/models/fairseq_model.py:117
↓ 3 callersFunctionwrite_longs
(f, a)
fairseq/data/indexed_dataset.py:102
↓ 2 callersFunctionDynamicConv
( input_size, kernel_size=1, padding_l=None, num_heads=1, weight_dropout=0.0, weight_s
fairseq/modules/dynamic_convolution.py:16
↓ 2 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:588
↓ 2 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/fconv.py:657
↓ 2 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/lightconv.py:890
↓ 2 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/fconv_self_att.py:593
↓ 2 callersFunctionLightweightConv
( input_size, kernel_size=1, padding_l=None, num_heads=1, weight_dropout=0.0, weight_s
fairseq/modules/lightweight_convolution.py:15
↓ 2 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/modules/dynamic_convolution.py:61
↓ 2 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/models/transformer.py:995
↓ 2 callersFunctionPositionalEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/fconv.py:664
↓ 2 callersFunctionPositionalEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/fconv_self_att.py:599
↓ 2 callersMethod__init__
(self, bpe, **kwargs)
fairseq/hub_utils.py:272
↓ 2 callersMethod__init__
(self, args, task)
fairseq/criterions/composite_loss.py:16
↓ 2 callersMethod__init__
(self, weight, transpose)
fairseq/modules/adaptive_softmax.py:17
↓ 2 callersMethod__init__
(self, args, dictionary, embed_tokens, encoder_module_list=None)
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:467
↓ 2 callersMethod__init__
(self, optimizers: Dict[str, FairseqOptimizer])
fairseq/optim/composite.py:123
↓ 2 callersMethod__init__
(self, iterable, chunk_size)
fairseq/data/iterators.py:516
↓ 2 callersMethod__init__
(self, dataset, pad_idx, left_pad)
fairseq/data/pad_dataset.py:12
↓ 2 callersMethod__init__
(self, path, fix_lua_indexing=False)
fairseq/data/indexed_dataset.py:140
↓ 2 callersMethod__init__
(self, args, encoder, decoder)
fairseq/models/transformer.py:102
↓ 2 callersMethod__init__
(self, args, encoder, decoder)
fairseq/models/nat/fairseq_nat_model.py:99
↓ 2 callersMethod__init__
( self, in_channels: int, mid_channels: int, out_channels: int, kernel
fairseq/models/speech_to_text/s2t_transformer.py:41
↓ 2 callersMethod__str__
(self)
fairseq/dataclass/constants.py:19
↓ 2 callersMethod_aggregate_logging_outputs
( self, logging_outputs: List[Dict[str, Any]], *extra_stats_to_sum, ignore=Fal
fairseq/trainer.py:1020
↓ 2 callersFunction_all_reduce_dict
(data: OrderedDict)
fairseq/distributed/utils.py:655
↓ 2 callersMethod_apply
(self, module, inp, x, backward)
fairseq/nan_detector.py:77
← previousnext →201–300 of 3,098, ranked by callers