Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dayu11/Differentially-Private-Deep-Learning
/ types & classes
Types & classes
374 in github.com/dayu11/Differentially-Private-Deep-Learning
⨍
Functions
3,168
◇
Types & classes
374
↓ 16 callers
Class
NumelDataset
language/bert/bert_code/fairseq/data/numel_dataset.py:12
↓ 14 callers
Class
PrependTokenDataset
language/bert/bert_code/fairseq/data/prepend_token_dataset.py:12
↓ 12 callers
Class
AverageMeter
Computes and stores the average and current value
language/bert/bert_code/fairseq/meters.py:9
↓ 12 callers
Class
PadDataset
language/bert/bert_code/fairseq/data/pad_dataset.py:11
↓ 11 callers
Class
TokenBlockDataset
Break a Dataset of tokens into blocks. Args: dataset (~torch.utils.data.Dataset): dataset to break into blocks sizes (List[int]):
language/bert/bert_code/fairseq/data/token_block_dataset.py:12
↓ 10 callers
Class
NestedDictionaryDataset
language/bert/bert_code/fairseq/data/nested_dictionary_dataset.py:47
↓ 10 callers
Class
SortDataset
language/bert/bert_code/fairseq/data/sort_dataset.py:11
↓ 9 callers
Class
IdDataset
language/bert/bert_code/fairseq/data/id_dataset.py:11
↓ 8 callers
Class
Domain
language/bert/prv_accountant/prv_accountant/domain.py:8
↓ 8 callers
Class
LrkLinear
language/bert/bert_code/fairseq/lrk_utils.py:82
↓ 8 callers
Class
TransformerSentenceEncoder
Implementation for a Bi-directional Transformer based Sentence Encoder used in BERT/XLM style pre-trained models. This first computes th
language/bert/bert_code/fairseq/modules/transformer_sentence_encoder.py:68
↓ 7 callers
Class
ConcatDataset
language/bert/bert_code/fairseq/data/concat_dataset.py:14
↓ 7 callers
Class
LanguagePairDataset
A pair of torch.utils.data.Datasets. Args: src (torch.utils.data.Dataset): source dataset to wrap src_sizes (List[int]): sou
language/bert/bert_code/fairseq/data/language_pair_dataset.py:116
↓ 7 callers
Class
MultiheadAttention
MultiHeadAttention
language/bert/bert_code/fairseq/modules/multihead_attention.py:174
↓ 6 callers
Class
LRUCacheDataset
language/bert/bert_code/fairseq/data/lru_cache_dataset.py:11
↓ 6 callers
Class
NumSamplesDataset
language/bert/bert_code/fairseq/data/num_samples_dataset.py:9
↓ 6 callers
Class
ResNet
vision/GEP/models/resnet_cifar.py:54
↓ 6 callers
Class
ResNet
vision/DP-SGD/models/resnet_cifar.py:54
↓ 5 callers
Class
DiscretePrivacyRandomVariable
language/bert/prv_accountant/prv_accountant/discrete_privacy_random_variable.py:13
↓ 5 callers
Class
TimeMeter
Computes the average occurrence of some event per second
language/bert/bert_code/fairseq/meters.py:31
↓ 4 callers
Class
AdaptiveSoftmax
This is an implementation of the efficient softmax approximation for graphical processing units (GPU), described in the paper "Efficient soft
language/bert/bert_code/fairseq/modules/adaptive_softmax.py:50
↓ 4 callers
Class
ConvTBC
1D convolution over an input of shape (time x batch x channel) The implementation uses gemm to perform the convolution. This implementation i
language/bert/bert_code/fairseq/modules/conv_tbc.py:10
↓ 4 callers
Class
StopwatchMeter
Computes the sum/avg duration of some event in seconds
language/bert/bert_code/fairseq/meters.py:53
↓ 4 callers
Class
TransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
language/bert/bert_code/fairseq/models/transformer.py:262
↓ 4 callers
Class
TransposeLast
language/bert/bert_code/fairseq/models/wav2vec.py:211
↓ 3 callers
Class
IndexedDataset
Loader for TorchNet IndexedDataset
language/bert/bert_code/fairseq/data/indexed_dataset.py:110
↓ 3 callers
Class
Infix
Infix operators. The calling sequence for the infix is: x |op| y
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:1689
↓ 3 callers
Class
LearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size. Padding ids are ignored by either offsetting based on padding_idx or
language/bert/bert_code/fairseq/modules/learned_positional_embedding.py:11
↓ 3 callers
Class
RawLabelDataset
language/bert/bert_code/fairseq/data/raw_label_dataset.py:11
↓ 3 callers
Class
RoundRobinZipDatasets
Zip multiple :class:`~fairseq.data.FairseqDataset` instances together. Shorter datasets are repeated in a round-robin fashion to match the length
language/bert/bert_code/fairseq/data/round_robin_zip_datasets.py:13
↓ 3 callers
Class
ShardedIterator
A sharded wrapper around an iterable, padded to length. Args: iterable (iterable): iterable to wrap num_shards (int): number of s
language/bert/bert_code/fairseq/data/iterators.py:306
↓ 3 callers
Class
TiedLinear
language/bert/bert_code/fairseq/modules/adaptive_softmax.py:14
↓ 3 callers
Class
TransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
language/bert/bert_code/fairseq/models/transformer.py:420
↓ 3 callers
Class
TransformerSentenceEncoderLayer
Implements a Transformer Encoder Layer used in BERT/XLM style pre-trained models.
language/bert/bert_code/fairseq/modules/transformer_sentence_encoder_layer.py:18
↓ 3 callers
Class
TruncateDataset
language/bert/bert_code/fairseq/data/truncate_dataset.py:11
↓ 2 callers
Class
Accountant
language/bert/prv_accountant/prv_accountant/accountant.py:18
↓ 2 callers
Class
Adam
Implements Adam algorithm. This implementation is modified from torch.optim.Adam based on: `Fixed Weight Decay Regularization in Adam` (s
language/bert/bert_code/fairseq/optim/adam.py:75
↓ 2 callers
Class
AdaptiveInput
language/bert/bert_code/fairseq/modules/adaptive_input.py:13
↓ 2 callers
Class
BeamSearch
language/bert/bert_code/fairseq/search.py:54
↓ 2 callers
Class
CharacterTokenEmbedder
language/bert/bert_code/fairseq/modules/character_token_embedder.py:20
↓ 2 callers
Class
ConcatSentencesDataset
language/bert/bert_code/fairseq/data/concat_sentences_dataset.py:11
↓ 2 callers
Class
CountingIterator
Wrapper around an iterable that maintains the iteration count. Args: iterable (iterable): iterable to wrap Attributes: count
language/bert/bert_code/fairseq/data/iterators.py:16
↓ 2 callers
Class
Dictionary
A mapping from symbols to consecutive integers
language/bert/bert_code/fairseq/data/dictionary.py:17
↓ 2 callers
Class
Downsample
Selects every nth element, where n is the index
language/bert/bert_code/fairseq/modules/downsampled_multihead_attention.py:228
↓ 2 callers
Class
DownsampledMultiHeadAttention
Multi-headed attention with Gating and Downsampling
language/bert/bert_code/fairseq/modules/downsampled_multihead_attention.py:150
↓ 2 callers
Class
DynamicLossScaler
language/bert/bert_code/fairseq/optim/fp16_optimizer.py:13
↓ 2 callers
Class
Extractor
An extraction task on a article.
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:496
↓ 2 callers
Class
FConvDecoder
Convolutional decoder
language/bert/bert_code/fairseq/models/fconv.py:338
↓ 2 callers
Class
Frame
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:467
↓ 2 callers
Class
IndexedCachedDataset
language/bert/bert_code/fairseq/data/indexed_dataset.py:182
↓ 2 callers
Class
IndexedRawTextDataset
Takes a text file as input and binarizes it in memory at instantiation. Original lines are also kept in memory
language/bert/bert_code/fairseq/data/indexed_dataset.py:230
↓ 2 callers
Class
LAMB
r"""Implements LAMB algorithm. It has been proposed in `Large Batch Optimization for Deep Learning: Training BERT in 76 minutes`_. Arguments:
language/bert/bert_code/fairseq/optim/lamb.py:75
↓ 2 callers
Class
LightConvDecoder
LightConv decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`LightConvDecoderLayer`. Args: args (argpar
language/bert/bert_code/fairseq/models/lightconv.py:278
↓ 2 callers
Class
LinearizedConvolution
An optimized version of nn.Conv1d. At training time, this module uses ConvTBC, which is an optimized version of Conv1d. At inference time, it
language/bert/bert_code/fairseq/modules/linearized_convolution.py:14
↓ 2 callers
Class
MaskedLMDataset
A wrapper Dataset for masked language modelling. The dataset wraps around TokenBlockDataset or BlockedPairDataset and creates a batch whe
language/bert/bert_code/fairseq/data/legacy/masked_lm_dataset.py:21
↓ 2 callers
Class
MonolingualDataset
A wrapper around torch.utils.data.Dataset for monolingual data. Args: dataset (torch.utils.data.Dataset): dataset to wrap si
language/bert/bert_code/fairseq/data/monolingual_dataset.py:50
↓ 2 callers
Class
NumpyExtension
Source: https://stackoverflow.com/a/54128391
language/bert/bert_code/setup.py:26
↓ 2 callers
Class
PoissonSubsampledGaussianMechanism
language/bert/prv_accountant/prv_accountant/privacy_random_variables.py:73
↓ 2 callers
Class
RDP
language/bert/prv_accountant/prv_accountant/other_accountants.py:13
↓ 2 callers
Class
RightPadDataset
language/bert/bert_code/fairseq/data/pad_dataset.py:28
↓ 2 callers
Class
SelfAttention
language/bert/bert_code/fairseq/models/fconv_self_att.py:469
↓ 2 callers
Class
SequenceScorer
Scores the target for a given source sentence.
language/bert/bert_code/fairseq/sequence_scorer.py:12
↓ 2 callers
Class
SingleHeadAttention
Single-head attention that supports Gating and Downsampling
language/bert/bert_code/fairseq/modules/downsampled_multihead_attention.py:15
↓ 2 callers
Class
TemplateText
Fixed text of template
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:408
↓ 1 callers
Class
Adafactor
Implements Adafactor algorithm. This implementation is based on: `Adafactor: Adaptive Learning Rates with Sublinear Memory Cost` (see htt
language/bert/bert_code/fairseq/optim/adafactor.py:65
↓ 1 callers
Class
Adamax
Implements Adamax algorithm (a variant of Adam based on infinity norm). It has been proposed in `Adam: A Method for Stochastic Optimization`__.
language/bert/bert_code/fairseq/optim/adamax.py:49
↓ 1 callers
Class
AttentionLayer
language/bert/bert_code/fairseq/models/fconv.py:286
↓ 1 callers
Class
AttentionLayer
language/bert/bert_code/fairseq/models/lstm.py:275
↓ 1 callers
Class
BacktranslationDataset
Sets up a backtranslation dataset which takes a tgt batch, generates a src using a tgt-src backtranslation function (*backtranslation_fn*),
language/bert/bert_code/fairseq/data/backtranslation_dataset.py:52
↓ 1 callers
Class
BeamableMM
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
language/bert/bert_code/fairseq/modules/beamable_mm.py:10
↓ 1 callers
Class
BertDictionary
Dictionary for BERT task. This extends MaskedLMDictionary by adding support for cls and sep symbols.
language/bert/bert_code/fairseq/data/legacy/masked_lm_dictionary.py:31
↓ 1 callers
Class
BleuStat
language/bert/bert_code/fairseq/bleu.py:21
↓ 1 callers
Class
BlockPairDataset
Break a Dataset of tokens into sentence pair blocks for next sentence prediction as well as masked language model. High-level logics ar
language/bert/bert_code/fairseq/data/legacy/block_pair_dataset.py:14
↓ 1 callers
Class
CompositeEncoder
A wrapper around a dictionary of :class:`FairseqEncoder` objects. We run forward on each encoder and return a dictionary of outputs. The fir
language/bert/bert_code/fairseq/models/composite_encoder.py:9
↓ 1 callers
Class
Controller
MC controller. Implements the :class:`~fairseq.models.FairseqDecoder` interface required by :class:`~fairseq.models.FairseqLanguageModel`.
language/bert/bert_code/fairseq/models/mcbert/model.py:292
↓ 1 callers
Class
ConvAggegator
language/bert/bert_code/fairseq/models/wav2vec.py:311
↓ 1 callers
Class
ConvFeatureExtractionModel
language/bert/bert_code/fairseq/models/wav2vec.py:257
↓ 1 callers
Class
DiscEncoder
Electra discriminator encoder. Implements the :class:`~fairseq.models.FairseqDecoder` interface required by :class:`~fairseq.models.FairseqLa
language/bert/bert_code/fairseq/models/electra/model.py:348
↓ 1 callers
Class
DiscLMHead
Head for masked language modeling.
language/bert/bert_code/fairseq/models/electra/model.py:418
↓ 1 callers
Class
DynamicConv1dTBC
Dynamic lightweight convolution taking T x B x C inputs Args: input_size: # of channels of the input kernel_size: convolution chan
language/bert/bert_code/fairseq/modules/dynamic_convolution.py:41
↓ 1 callers
Class
DynamicconvLayer
language/bert/bert_code/fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:36
↓ 1 callers
Class
ElectraClassificationHead
Head for sentence-level classification tasks.
language/bert/bert_code/fairseq/models/electra/model.py:252
↓ 1 callers
Class
ElectraHubInterface
A simple PyTorch Hub interface to electra. Usage: https://github.com/pytorch/fairseq/tree/master/examples/electra
language/bert/bert_code/fairseq/models/electra/hub_interface.py:15
↓ 1 callers
Class
Encoder
language/bert/bert_code/fairseq/data/encoders/gpt2_bpe_utils.py:45
↓ 1 callers
Class
EnsembleLevT
A wrapper around an ensemble of models.
language/bert/bert_code/fairseq/models/nonautoregressive_ensembles.py:44
↓ 1 callers
Class
EnsembleModel
A wrapper around an ensemble of models.
language/bert/bert_code/fairseq/sequence_generator.py:520
↓ 1 callers
Class
EnsembleModelWithAlignment
A wrapper around an ensemble of models.
language/bert/bert_code/fairseq/sequence_generator.py:670
↓ 1 callers
Class
FConvDecoder
Convolutional decoder
language/bert/bert_code/fairseq/models/fconv_self_att.py:274
↓ 1 callers
Class
FConvEncoder
Convolutional encoder consisting of `len(convolutions)` layers. Args: dictionary (~fairseq.data.Dictionary): encoding dictionary
language/bert/bert_code/fairseq/models/fconv.py:122
↓ 1 callers
Class
FConvEncoder
Convolutional encoder
language/bert/bert_code/fairseq/models/fconv_self_att.py:149
↓ 1 callers
Class
FConvLanguageModel
language/bert/bert_code/fairseq/models/fconv_lm.py:16
↓ 1 callers
Class
FConvModel
A fully convolutional model, i.e. a convolutional encoder and a convolutional decoder, as described in `"Convolutional Sequence to Sequence
language/bert/bert_code/fairseq/models/fconv.py:26
↓ 1 callers
Class
FConvModelSelfAtt
language/bert/bert_code/fairseq/models/fconv_self_att.py:31
↓ 1 callers
Class
FairseqModel
language/bert/bert_code/fairseq/models/fairseq_model.py:254
↓ 1 callers
Class
FakeModel
language/bert/bert_code/fairseq/criterions/composite_loss.py:38
↓ 1 callers
Class
FileAudioDataset
language/bert/bert_code/fairseq/data/audio/raw_audio_dataset.py:121
↓ 1 callers
Class
Fp32GroupNorm
language/bert/bert_code/fairseq/models/wav2vec.py:222
↓ 1 callers
Class
Fp32LayerNorm
language/bert/bert_code/fairseq/models/wav2vec.py:233
↓ 1 callers
Class
FusedAdam
Implements Adam algorithm. Currently GPU-only. Requires Apex to be installed via ``python setup.py install --cuda_ext --cpp_ext``. It ha
language/bert/bert_code/fairseq/optim/adam.py:184
↓ 1 callers
Class
GEP
vision/GEP/models/basis_matching.py:74
next →
1–100 of 374, ranked by callers