MCPcopy Create free account

hub / github.com/HA-Transformer/MAT / functions

Functions2,038 in github.com/HA-Transformer/MAT

↓ 1 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/transformer_mb/transformer_mb.py:582
↓ 1 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
examples/speech_recognition/models/vggtransformer.py:713
↓ 1 callersFunctionLSTM
(input_size, hidden_size, **kwargs)
fairseq/models/lstm.py:478
↓ 1 callersFunctionLSTMCell
(input_size, hidden_size, **kwargs)
fairseq/models/lstm.py:486
↓ 1 callersFunctionLayerNorm
(embedding_dim)
examples/speech_recognition/models/vggtransformer.py:738
↓ 1 callersFunctionLinearizedConv1d
Weight-normalized Conv1d layer optimized for decoding
fairseq/models/fconv.py:583
↓ 1 callersFunctionLinearizedConv1d
Weight-normalized Conv1d layer optimized for decoding
fairseq/models/fconv_self_att.py:511
↓ 1 callersMethod_BM_after_sync
(self)
fairseq/optim/bmuf.py:171
↓ 1 callersMethod_BM_before_sync
(self)
fairseq/optim/bmuf.py:152
↓ 1 callersFunction__best_fitting_dtype
(vocab_size=None)
fairseq/data/indexed_dataset.py:17
↓ 1 callersMethod__init__
(self, model, net_out, target)
fairseq/criterions/composite_loss.py:40
↓ 1 callersMethod__init__
(self, input_size, kernel_size=1, padding=0, num_heads=1, weight_softmax=False, bias=False, w
fairseq/modules/lightweight_convolution.py:37
↓ 1 callersMethod__init__
(self, args)
fairseq/modules/transformer_layer.py:27
↓ 1 callersMethod__init__
(self, params, lr=None, eps=(1e-30, 1e-3), clip_threshold=1.0, decay_rate=-0.8, beta1=None, w
fairseq/optim/adafactor.py:93
↓ 1 callersMethod__init__
(self, params, lr=required, momentum=0, weight_decay=0)
fairseq/optim/nag.py:44
↓ 1 callersMethod__init__
(self, params, lr=2e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, bias_correction=True)
fairseq/optim/adamax.py:70
↓ 1 callersMethod__init__
(self, args, params, fp32_optimizer, fp32_params)
fairseq/optim/fp16_optimizer.py:62
↓ 1 callersMethod__init__
(self, sizes)
fairseq/data/token_block_dataset.py:201
↓ 1 callersMethod__init__
( self, pad='<pad>', eos='</s>', unk='<unk>', mask='<mask>', c
fairseq/data/legacy/masked_lm_dictionary.py:36
↓ 1 callersMethod__init__
(self, args, encoder)
fairseq/models/masked_lm.py:31
↓ 1 callersMethod__init__
(self, args, dictionary, embed_tokens)
fairseq/models/transformer_from_pretrained_xlm.py:115
↓ 1 callersMethod__init__
(self, args)
fairseq/models/transformer_mb/transformer_mb_layer.py:45
↓ 1 callersMethod__len__
(self)
fairseq/data/id_dataset.py:16
↓ 1 callersMethod__len__
Length of this dataset is the sum of individual datasets
fairseq/data/multi_corpus_sampled_dataset.py:50
↓ 1 callersMethod_add_file_to_dictionary_single_worker
(filename, tokenize, eos_word, worker_id=0, num_workers=1)
fairseq/data/dictionary.py:265
↓ 1 callersMethod_allreduce_parameter
(self)
fairseq/optim/bmuf.py:162
↓ 1 callersFunction_apply
(x)
fairseq/utils.py:37
↓ 1 callersMethod_approx_sq_grad
(self, exp_avg_sq_row, exp_avg_sq_col, output)
fairseq/optim/adafactor.py:123
↓ 1 callersMethod_broadcast_model
(self, rootRank=0)
fairseq/optim/bmuf.py:98
↓ 1 callersMethod_build_sample
(self, src_tokens: torch.LongTensor)
fairseq/hub_utils.py:181
↓ 1 callersMethod_collate
Does the heavy lifting for creating a batch from the input list of examples. The logic is as follows: 1. Mask the input b
fairseq/data/legacy/masked_lm_dataset.py:179
↓ 1 callersMethod_collate_frames
Convert a list of 2d frames into a padded 3d tensor Args: frames (list): list of 2d frames of size L[i]*f_dim. Where L[i] is
examples/speech_recognition/data/collaters.py:43
↓ 1 callersMethod_convolve
( self, char_idxs: torch.Tensor, )
fairseq/modules/character_token_embedder.py:137
↓ 1 callersMethod_decrease_loss_scale
(self)
fairseq/optim/fp16_optimizer.py:44
↓ 1 callersMethod_embed_tokens
(self, tokens, incremental_state)
fairseq/models/fconv.py:514
↓ 1 callersMethod_filter_vocab
(self, target)
fairseq/data/monolingual_dataset.py:139
↓ 1 callersFunction_flatten
Flatten a nested dictionary.
fairseq/data/nested_dictionary_dataset.py:14
↓ 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:155
↓ 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:187
↓ 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:103
↓ 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:151
↓ 1 callersMethod_generate_sentence_pair
Go through a single document and genrate sentence paris from it
fairseq/data/legacy/block_pair_dataset.py:154
↓ 1 callersMethod_get_linearized_weight
(self)
fairseq/modules/linearized_convolution.py:78
↓ 1 callersMethod_get_lr
(self, param_group, param_state)
fairseq/optim/adafactor.py:105
↓ 1 callersMethod_get_meta
(self)
fairseq/data/dictionary.py:228
↓ 1 callersMethod_get_options
(self, param_group, param_shape)
fairseq/optim/adafactor.py:115
↓ 1 callersMethod_get_pointers
(sizes)
fairseq/data/indexed_dataset.py:368
↓ 1 callersMethod_get_test_data_with_bpe_end_marker
Args: append_eos: if True, each input sentence in the source tokens tensor will have an EOS appended to the end.
tests/test_noising.py:57
↓ 1 callersMethod_get_test_data_with_word_vocab
Args: append_eos: if True, each input sentence in the source tokens tensor will have an EOS appended to the end.
tests/test_noising.py:93
↓ 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:64
↓ 1 callersMethod_load_meta
(self, lines)
fairseq/data/dictionary.py:231
↓ 1 callersMethod_load_single_lang_dataset
(self, split, epoch)
fairseq/tasks/cross_lingual_lm.py:104
↓ 1 callersMethod_make_source_target
(self, source, future_target, past_target)
fairseq/data/monolingual_dataset.py:99
↓ 1 callersMethod_make_tail
(self, adaptive_inputs=None, tie_proj=False)
fairseq/modules/adaptive_softmax.py:91
↓ 1 callersMethod_maybe_add_bos
(self, source, target)
fairseq/data/monolingual_dataset.py:132
↓ 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:101
↓ 1 callersMethod_progress
(self, iterable, **kwargs)
scripts/wav2vec_featurize.py:144
↓ 1 callersMethod_reset_local_data
(self)
fairseq/optim/bmuf.py:139
↓ 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:174
↓ 1 callersMethod_save
(self, f, kv_iterator)
fairseq/data/dictionary.py:220
↓ 1 callersMethod_sent_to_dataset_index
Build index mapping block indices to the underlying dataset indices
fairseq/data/legacy/block_pair_dataset.py:124
↓ 1 callersMethod_set_seed
(self)
fairseq/trainer.py:512
↓ 1 callersMethod_split_encoder_out
Split and transpose encoder outputs. This is cached when doing incremental inference.
fairseq/models/fconv.py:520
↓ 1 callersMethod_split_encoder_out
Split and transpose encoder outputs.
fairseq/models/fconv_self_att.py:459
↓ 1 callersMethod_str_commas
(self, stats)
fairseq/progress_bar.py:99
↓ 1 callersMethod_sync_block
(self)
fairseq/optim/bmuf.py:88
↓ 1 callersMethod_transpose_if_inference
(self, x, incremental_state)
examples/speech_recognition/models/vggtransformer.py:707
↓ 1 callersMethod_transpose_if_training
(self, x, incremental_state)
examples/speech_recognition/models/vggtransformer.py:702
↓ 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:224
↓ 1 callersFunction_unflatten
Unflatten a flattened dictionary into a nested dictionary.
fairseq/data/nested_dictionary_dataset.py:31
↓ 1 callersFunction_upgrade_state_dict
Helper for upgrading old model checkpoints.
fairseq/checkpoint_utils.py:247
↓ 1 callersMethod_writer
(self, key)
fairseq/progress_bar.py:242
↓ 1 callersMethodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/masked_lm.py:33
↓ 1 callersMethodadd_args
Add model-specific arguments to the parser.
fairseq/models/lstm.py:27
↓ 1 callersFunctionadd_asr_eval_argument
(parser)
examples/speech_recognition/infer.py:25
↓ 1 callersFunctionadd_checkpoint_args
(parser)
fairseq/options.py:366
↓ 1 callersFunctionadd_distributed_training_args
(parser)
fairseq/options.py:304
↓ 1 callersFunctionadd_eval_lm_args
(parser)
fairseq/options.py:424
↓ 1 callersMethodadd_from_file
Loads a pre-existing dictionary from a text file and adds its symbols to this instance.
fairseq/data/dictionary.py:188
↓ 1 callersFunctionadd_generation_args
(parser)
fairseq/options.py:441
↓ 1 callersFunctionadd_interactive_args
(parser)
fairseq/options.py:507
↓ 1 callersFunctionadd_model_args
(parser)
fairseq/options.py:517
↓ 1 callersFunctionadd_optimization_args
(parser)
fairseq/options.py:339
↓ 1 callersFunctionadd_preprocess_args
(parser)
fairseq/options.py:214
↓ 1 callersMethodalmostEqual
(self, t1, t2)
tests/test_sequence_generator.py:364
↓ 1 callersMethodapply_bpe
(self, sentence: str)
fairseq/hub_utils.py:165
↓ 1 callersMethodapply_mask
Return the source and target datasets for masked LM training.
fairseq/data/mask_tokens_dataset.py:46
↓ 1 callersMethodapply_sparse_mask
(self, attn_weights, tgt_len, src_len, bsz)
fairseq/modules/multihead_attention.py:346
↓ 1 callersFunctionapply_to_sample
(f, sample)
fairseq/utils.py:33
↓ 1 callersMethodassertAlmostEqual
(self, t1, t2)
tests/test_sequence_generator.py:30
↓ 1 callersMethodassertAlmostEqual
(self, t1, t2)
tests/test_sequence_scorer.py:105
↓ 1 callersMethodassertHypoScore
(self, hypo, pos_probs, normalized=True, lenpen=1.)
tests/test_sequence_scorer.py:96
↓ 1 callersMethodassertHypoTokens
(self, hypo, tokens)
tests/test_sequence_scorer.py:93
↓ 1 callersMethodassertTensorEqual
(self, t1, t2)
tests/test_sequence_generator.py:34
↓ 1 callersMethodassertTensorEqual
(self, t1, t2)
tests/test_sequence_scorer.py:109
↓ 1 callersFunctionbacktranslate_samples
Backtranslate a list of samples. Given an input (*samples*) of the form: [{'id': 1, 'source': 'hallo welt'}] this will return:
fairseq/data/backtranslation_dataset.py:13
↓ 1 callersMethodbackward
Computes the sum of gradients of the given tensor w.r.t. graph leaves. Compared to :func:`fairseq.optim.FairseqOptimizer.backward`, this
fairseq/optim/fp16_optimizer.py:137
↓ 1 callersMethodbackward
Computes the sum of gradients of the given tensor w.r.t. graph leaves. Compared to :func:`fairseq.optim.FairseqOptimizer.backward`, this
fairseq/optim/fp16_optimizer.py:317
↓ 1 callersFunctionbase_architecture
(args)
fairseq/models/fconv_self_att.py:531
↓ 1 callersFunctionbase_architecture
(args)
examples/speech_recognition/models/vggtransformer.py:744
← previousnext →401–500 of 2,038, ranked by callers