MCPcopy Create free account

hub / github.com/HA-Transformer/MAT / types & classes

Types & classes299 in github.com/HA-Transformer/MAT

↓ 14 callersClassAverageMeter
Computes and stores the average and current value
fairseq/meters.py:9
↓ 13 callersClassLanguagePairDataset
A pair of torch.utils.data.Datasets. Args: src (torch.utils.data.Dataset): source dataset to wrap src_sizes (List[int]): sou
fairseq/data/language_pair_dataset.py:67
↓ 11 callersClassSequenceGenerator
fairseq/sequence_generator.py:14
↓ 10 callersClassTokenBlockDataset
Break a Dataset of tokens into blocks. Args: dataset (~torch.utils.data.Dataset): dataset to break into blocks sizes (List[int]):
fairseq/data/token_block_dataset.py:14
↓ 9 callersClassDictionary
A mapping from symbols to consecutive integers
fairseq/data/dictionary.py:17
↓ 9 callersClassNumelDataset
fairseq/data/numel_dataset.py:12
↓ 8 callersClassConcatDataset
fairseq/data/concat_dataset.py:14
↓ 8 callersClassMultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
fairseq/modules/multihead_attention.py:14
↓ 8 callersClassStopwatchMeter
Computes the sum/avg duration of some event in seconds
fairseq/meters.py:49
↓ 8 callersClassTimeMeter
Computes the average occurrence of some event per second
fairseq/meters.py:27
↓ 7 callersClassListDataset
fairseq/data/list_dataset.py:9
↓ 6 callersClassIdDataset
fairseq/data/id_dataset.py:11
↓ 6 callersClassNestedDictionaryDataset
fairseq/data/nested_dictionary_dataset.py:47
↓ 6 callersClassPrependTokenDataset
fairseq/data/prepend_token_dataset.py:12
↓ 6 callersClassSortDataset
fairseq/data/sort_dataset.py:11
↓ 6 callersClassVGGTransformerEncoder
VGG + Transformer encoder
examples/speech_recognition/models/vggtransformer.py:210
↓ 5 callersClassAdaptiveSoftmax
This is an implementation of the efficient softmax approximation for graphical processing units (GPU), described in the paper "Efficient soft
fairseq/modules/adaptive_softmax.py:50
↓ 5 callersClassConvTBC
1D convolution over an input of shape (time x batch x channel) The implementation uses gemm to perform the convolution. This implementation i
fairseq/modules/conv_tbc.py:10
↓ 5 callersClassNumSamplesDataset
fairseq/data/num_samples_dataset.py:9
↓ 4 callersClassLabelSmoothedCrossEntropyCriterion
fairseq/criterions/label_smoothed_cross_entropy.py:34
↓ 4 callersClassSequenceScorer
Scores the target for a given source sentence.
fairseq/sequence_scorer.py:12
↓ 4 callersClassTransformEosDataset
A :class:`~fairseq.data.FairseqDataset` wrapper that appends/prepends/strips EOS. Note that the transformation is applied in :func:`collater`.
fairseq/data/transform_eos_dataset.py:11
↓ 4 callersClassTransformerDecoderLayer
Decoder layer block. In the original paper each operation (multi-head attention, encoder attention or FFN) is postprocessed with: `dropout ->
fairseq/modules/transformer_layer.py:117
↓ 4 callersClassTransformerEncoderLayer
Encoder layer block. In the original paper each operation (multi-head attention or FFN) is postprocessed with: `dropout -> add residual -> la
fairseq/modules/transformer_layer.py:12
↓ 4 callersClassTransposeLast
fairseq/models/wav2vec.py:211
↓ 3 callersClassCharacterTokenEmbedder
fairseq/modules/character_token_embedder.py:20
↓ 3 callersClassIndexedDataset
Loader for TorchNet IndexedDataset
fairseq/data/indexed_dataset.py:110
↓ 3 callersClassLRUCacheDataset
fairseq/data/lru_cache_dataset.py:11
↓ 3 callersClassLearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size. Padding ids are ignored by either offsetting based on padding_idx or
fairseq/modules/learned_positional_embedding.py:11
↓ 3 callersClassLinearizedConvolution
An optimized version of nn.Conv1d. At training time, this module uses ConvTBC, which is an optimized version of Conv1d. At inference time, it
fairseq/modules/linearized_convolution.py:14
↓ 3 callersClassMultiCorpusSampledDataset
Stores multiple instances of FairseqDataset together and in every iteration creates a batch by first sampling a dataset according to a specif
fairseq/data/multi_corpus_sampled_dataset.py:19
↓ 3 callersClassPadDataset
fairseq/data/pad_dataset.py:11
↓ 3 callersClassRawLabelDataset
fairseq/data/raw_label_dataset.py:11
↓ 3 callersClassRightPadDataset
fairseq/data/pad_dataset.py:28
↓ 3 callersClassRoundRobinZipDatasets
Zip multiple :class:`~fairseq.data.FairseqDataset` instances together. Shorter datasets are repeated in a round-robin fashion to match the length
fairseq/data/round_robin_zip_datasets.py:13
↓ 3 callersClassShardedIterator
A sharded wrapper around an iterable, padded to length. Args: iterable (iterable): iterable to wrap num_shards (int): number of s
fairseq/data/iterators.py:293
↓ 3 callersClassSparseMultiheadAttention
Sparse Multi-Headed Attention. "Generating Long Sequences with Sparse Transformers". Implements fixed factorized self attention, where l=str
fairseq/modules/sparse_multihead_attention.py:11
↓ 3 callersClassTiedLinear
fairseq/modules/adaptive_softmax.py:14
↓ 3 callersClassTransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
fairseq/models/transformer.py:311
↓ 3 callersClassTruncateDataset
fairseq/data/truncate_dataset.py:11
↓ 2 callersClassAdam
Implements Adam algorithm. This implementation is modified from torch.optim.Adam based on: `Fixed Weight Decay Regularization in Adam` (s
fairseq/optim/adam.py:57
↓ 2 callersClassAdaptiveInput
fairseq/modules/adaptive_input.py:13
↓ 2 callersClassBacktranslationDataset
Sets up a backtranslation dataset which takes a tgt batch, generates a src using a tgt-src backtranslation function (*backtranslation_fn*),
fairseq/data/backtranslation_dataset.py:52
↓ 2 callersClassBeamSearch
fairseq/search.py:54
↓ 2 callersClassConcatSentencesDataset
fairseq/data/concat_sentences_dataset.py:11
↓ 2 callersClassCountingIterator
Wrapper around an iterable that maintains the iteration count. Args: iterable (iterable): iterable to wrap Attributes: count
fairseq/data/iterators.py:15
↓ 2 callersClassCrossEntropyCriterion
fairseq/criterions/cross_entropy.py:15
↓ 2 callersClassDownsample
Selects every nth element, where n is the index
fairseq/modules/downsampled_multihead_attention.py:228
↓ 2 callersClassDownsampledMultiHeadAttention
Multi-headed attention with Gating and Downsampling
fairseq/modules/downsampled_multihead_attention.py:150
↓ 2 callersClassDummyEncoder
tests/speech_recognition/asr_test_base.py:489
↓ 2 callersClassDynamicConv1dTBC
Dynamic lightweight convolution taking T x B x C inputs Args: input_size: # of channels of the input kernel_size: convolution chan
fairseq/modules/dynamic_convolution.py:22
↓ 2 callersClassDynamicLossScaler
fairseq/optim/fp16_optimizer.py:13
↓ 2 callersClassFConvDecoder
Convolutional decoder
fairseq/models/fconv.py:338
↓ 2 callersClassIndexedCachedDataset
fairseq/data/indexed_dataset.py:182
↓ 2 callersClassIndexedRawTextDataset
Takes a text file as input and binarizes it in memory at instantiation. Original lines are also kept in memory
fairseq/data/indexed_dataset.py:230
↓ 2 callersClassLMContextWindowDataset
Wraps a MonolingualDataset and provides more context for evaluation.
fairseq/data/lm_context_window_dataset.py:14
↓ 2 callersClassLightConvDecoder
LightConv decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`LightConvDecoderLayer`. Args: args (argpar
fairseq/models/lightconv.py:278
↓ 2 callersClassLightweightConv1dTBC
Lightweight Convolution assuming the input is TxBxC Args: input_size: # of channels of the input kernel_size: convolution channels
fairseq/modules/lightweight_convolution.py:85
↓ 2 callersClassMaskedLMDataset
A wrapper Dataset for masked language modelling. The dataset wraps around TokenBlockDataset or BlockedPairDataset and creates a batch whe
fairseq/data/legacy/masked_lm_dataset.py:21
↓ 2 callersClassMonolingualDataset
A wrapper around torch.utils.data.Dataset for monolingual data. Args: dataset (torch.utils.data.Dataset): dataset to wrap si
fairseq/data/monolingual_dataset.py:50
↓ 2 callersClassSelfAttention
fairseq/models/fconv_self_att.py:469
↓ 2 callersClassSeq2SeqCollater
Implements collate function mainly for seq2seq tasks This expects each sample to contain feature (src_tokens) and targets.
examples/speech_recognition/data/collaters.py:21
↓ 2 callersClassSingleHeadAttention
Single-head attention that supports Gating and Downsampling
fairseq/modules/downsampled_multihead_attention.py:15
↓ 2 callersClassTrainer
Main class for data parallel training. This class supports synchronous distributed data parallel training, where multiple workers each have a
fairseq/trainer.py:24
↓ 2 callersClassTransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (arg
examples/speech_recognition/models/vggtransformer.py:551
↓ 2 callersClassTransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
fairseq/models/transformer.py:186
↓ 2 callersClassTransformerSentenceEncoder
Implementation for a Bi-directional Transformer based Sentence Encoder used in BERT/XLM style pre-trained models. This first computes th
fairseq/modules/transformer_sentence_encoder.py:44
↓ 1 callersClassAdafactor
Implements Adafactor algorithm. This implementation is based on: `Adafactor: Adaptive Learning Rates with Sublinear Memory Cost` (see htt
fairseq/optim/adafactor.py:65
↓ 1 callersClassAdamax
Implements Adamax algorithm (a variant of Adam based on infinity norm). It has been proposed in `Adam: A Method for Stochastic Optimization`__.
fairseq/optim/adamax.py:49
↓ 1 callersClassAsrDataset
A dataset representing speech and corresponding transcription. Args: aud_paths: (List[str]): A list of str with paths to audio files
examples/speech_recognition/data/asr_dataset.py:14
↓ 1 callersClassAttentionLayer
fairseq/models/fconv.py:286
↓ 1 callersClassAttentionLayer
fairseq/models/lstm.py:275
↓ 1 callersClassBeamableMM
This module provides an optimized MM for beam decoding with attention. It leverage the fact that the source-side of the input is replicated beam
fairseq/modules/beamable_mm.py:10
↓ 1 callersClassBertDictionary
Dictionary for BERT task. This extends MaskedLMDictionary by adding support for cls and sep symbols.
fairseq/data/legacy/masked_lm_dictionary.py:31
↓ 1 callersClassBleuStat
fairseq/bleu.py:24
↓ 1 callersClassBlockPairDataset
Break a Dataset of tokens into sentence pair blocks for next sentence prediction as well as masked language model. High-level logics ar
fairseq/data/legacy/block_pair_dataset.py:14
↓ 1 callersClassCompositeEncoder
A wrapper around a dictionary of :class:`FairseqEncoder` objects. We run forward on each encoder and return a dictionary of outputs. The fir
fairseq/models/composite_encoder.py:9
↓ 1 callersClassConvAggegator
fairseq/models/wav2vec.py:311
↓ 1 callersClassConvFeatureExtractionModel
fairseq/models/wav2vec.py:257
↓ 1 callersClassDatasetSearcher
Helper for mapping "flat" indices to indices and offsets in an underlying dataset.
fairseq/data/token_block_dataset.py:197
↓ 1 callersClassDummyEncoderModel
tests/speech_recognition/asr_test_base.py:473
↓ 1 callersClassDummyTask
tests/speech_recognition/asr_test_base.py:40
↓ 1 callersClassEmbeddingDatasetWriter
Given a model and a wav2letter++ dataset, pre-compute and store embeddings Args: input_root, str : Path to the wav2letter++
scripts/wav2vec_featurize.py:109
↓ 1 callersClassEmbeddingWriterConfig
scripts/wav2vec_featurize.py:52
↓ 1 callersClassEncoder
fairseq/data/encoders/gpt2_bpe_utils.py:45
↓ 1 callersClassEnsembleModel
A wrapper around an ensemble of models.
fairseq/sequence_generator.py:519
↓ 1 callersClassFConvDecoder
Convolutional decoder
fairseq/models/fconv_self_att.py:274
↓ 1 callersClassFConvEncoder
Convolutional encoder consisting of `len(convolutions)` layers. Args: dictionary (~fairseq.data.Dictionary): encoding dictionary
fairseq/models/fconv.py:122
↓ 1 callersClassFConvEncoder
Convolutional encoder
fairseq/models/fconv_self_att.py:149
↓ 1 callersClassFConvLanguageModel
fairseq/models/fconv_lm.py:16
↓ 1 callersClassFConvModel
A fully convolutional model, i.e. a convolutional encoder and a convolutional decoder, as described in `"Convolutional Sequence to Sequence
fairseq/models/fconv.py:26
↓ 1 callersClassFConvModelSelfAtt
fairseq/models/fconv_self_att.py:31
↓ 1 callersClassFairseqAdam
fairseq/optim/adam.py:16
↓ 1 callersClassFairseqModel
fairseq/models/fairseq_model.py:251
↓ 1 callersClassFakeModel
fairseq/criterions/composite_loss.py:38
↓ 1 callersClassFp32GroupNorm
fairseq/models/wav2vec.py:222
↓ 1 callersClassFp32LayerNorm
fairseq/models/wav2vec.py:233
↓ 1 callersClassFusedAdam
Implements Adam algorithm. Currently GPU-only. Requires Apex to be installed via ``python setup.py install --cuda_ext --cpp_ext``. It ha
fairseq/optim/adam.py:166
↓ 1 callersClassH5Writer
Write features as hdf5 file in wav2letter++ compatible format
scripts/wav2vec_featurize.py:93
↓ 1 callersClassHighway
A `Highway layer <https://arxiv.org/abs/1505.00387>`_. Adopted from the AllenNLP implementation.
fairseq/modules/highway.py:11
next →1–100 of 299, ranked by callers