MCPcopy Create free account

hub / github.com/XuezheMax/flowseq / types & classes

Types & classes56 in github.com/XuezheMax/flowseq

↓ 10 callersClassNICE
NICE Flow
flownmt/flows/couplings/coupling.py:10
↓ 9 callersClassLinearWeightNorm
Linear with weight normalization
flownmt/nnet/weightnorm.py:6
↓ 7 callersClassDataIterator
flownmt/data/dataloader.py:245
↓ 6 callersClassActNormFlow
flownmt/flows/actnorm.py:11
↓ 6 callersClassGlobalAttention
Global Attention between encoder and decoder
flownmt/nnet/attention.py:10
↓ 5 callersClassMultiHeadAttention
Multi-head Attention
flownmt/nnet/attention.py:98
↓ 5 callersClassNMTDataSet
flownmt/data/dataloader.py:33
↓ 4 callersClassPositionalEncoding
This module produces sinusoidal positional embeddings of any length. Padding symbols are ignored.
flownmt/nnet/positional_encoding.py:8
↓ 3 callersClassInvertibleMultiHeadFlow
flownmt/flows/linear.py:88
↓ 3 callersClassTransformerDecoderLayer
flownmt/nnet/transformer.py:23
↓ 2 callersClassConv1dWeightNorm
Conv1d with weight normalization
flownmt/nnet/weightnorm.py:44
↓ 2 callersClassLabelSmoothedCrossEntropyLoss
Cross Entropy loss with label smoothing. For training, the loss is smoothed with parameter eps, while for evaluation, the smoothing is disabl
flownmt/nnet/criterion.py:5
↓ 2 callersClassNMTFlowBlock
NMT Flow Block
flownmt/flows/nmt.py:332
↓ 2 callersClassNMTFlowUnit
One Unit of NMTFlowStep
flownmt/flows/nmt.py:72
↓ 2 callersClassPositionwiseFeedForward
flownmt/nnet/attention.py:235
↓ 1 callersClassAdamW
r"""Implements AdamW algorithm. This implementation is modified from torch.optim.Adam based on: `Fixed Weight Decay Regularization in Adam`
flownmt/optim/adamw.py:6
↓ 1 callersClassDiffDiscreteMixLogisticLengthPredictor
flownmt/modules/priors/length_predictors/diff_discretized_mix_logistic.py:11
↓ 1 callersClassDiffSoftMaxLengthPredictor
flownmt/modules/priors/length_predictors/diff_softmax.py:11
↓ 1 callersClassErrorHandler
A class that listens for exceptions in children processes and propagates the tracebacks to the parent process.
experiments/distributed.py:103
↓ 1 callersClassExponentialScheduler
Set the learning rate of each parameter group to the initial lr decayed by gamma every epoch. When last_epoch=-1, sets initial lr as lr. We al
flownmt/optim/lr_scheduler.py:82
↓ 1 callersClassFlowNMT
NMT model with Generative Flow.
flownmt/flownmt.py:384
↓ 1 callersClassFlowNMTCore
core module for flow nmt model
flownmt/flownmt.py:17
↓ 1 callersClassInverseSquareRootScheduler
Decay the LR based on the inverse square root of the update number. We also support a warmup phase where we linearly increase the learning ra
flownmt/optim/lr_scheduler.py:49
↓ 1 callersClassInvertibleLinearFlow
flownmt/flows/linear.py:11
↓ 1 callersClassNICEConvBlock
flownmt/flows/couplings/blocks.py:11
↓ 1 callersClassNICERecurrentBlock
flownmt/flows/couplings/blocks.py:51
↓ 1 callersClassNICESelfAttnBlock
flownmt/flows/couplings/blocks.py:88
↓ 1 callersClassNMTFlow
NMT Flow
flownmt/flows/nmt.py:429
↓ 1 callersClassNMTFlowPOSAttnUnit
Unit for POS Attention
flownmt/flows/nmt.py:13
↓ 1 callersClassNMTFlowStep
One step of NMTFlow
flownmt/flows/nmt.py:244
↓ 1 callersClassPrior
class for Prior with a NMTFlow inside
flownmt/modules/priors/prior.py:10
↓ 1 callersClassRecurrentCore
flownmt/modules/encoders/rnn.py:11
↓ 1 callersClassRecurrentCore
flownmt/modules/posteriors/rnn.py:13
↓ 1 callersClassRecurrentDecoder
Decoder with Recurrent Neural Networks
flownmt/modules/decoders/rnn.py:12
↓ 1 callersClassRecurrentEncoder
Src Encoder to encode source sentence with Recurrent Neural Networks
flownmt/modules/encoders/rnn.py:53
↓ 1 callersClassRecurrentPosterior
Posterior with Recurrent Neural Networks
flownmt/modules/posteriors/rnn.py:80
↓ 1 callersClassShiftRecurrentCore
flownmt/modules/posteriors/shift_rnn.py:13
↓ 1 callersClassShiftRecurrentPosterior
Posterior with Recurrent Neural Networks
flownmt/modules/posteriors/shift_rnn.py:107
↓ 1 callersClassSimpleDecoder
Simple Decoder to predict translations from latent z
flownmt/modules/decoders/simple.py:10
↓ 1 callersClassTransformerCore
flownmt/modules/encoders/transformer.py:13
↓ 1 callersClassTransformerCore
flownmt/modules/posteriors/transformer.py:14
↓ 1 callersClassTransformerDecoder
Decoder with Transformer
flownmt/modules/decoders/transformer.py:13
↓ 1 callersClassTransformerEncoder
Src Encoder to encode source sentence with Transformer
flownmt/modules/encoders/transformer.py:54
↓ 1 callersClassTransformerEncoderLayer
flownmt/nnet/transformer.py:6
↓ 1 callersClassTransformerPosterior
Posterior with Transformer
flownmt/modules/posteriors/transformer.py:70
ClassAdditive
flownmt/flows/couplings/transform.py:17
ClassAffine
flownmt/flows/couplings/transform.py:35
ClassDataParallelFlow
Implements data parallelism at the flow level.
flownmt/flows/parallel/data_parallel.py:12
ClassDecoder
Decoder to predict translations from latent z
flownmt/modules/decoders/decoder.py:8
ClassEncoder
Src Encoder to encode source sentence
flownmt/modules/encoders/encoder.py:7
ClassFlow
Normalizing Flow base class
flownmt/flows/flow.py:6
ClassLengthPredictor
Length Predictor
flownmt/modules/priors/length_predictors/predictor.py:6
ClassNLSQ
flownmt/flows/couplings/transform.py:63
ClassPosterior
posterior class
flownmt/modules/posteriors/posterior.py:7
ClassTransform
flownmt/flows/couplings/transform.py:7
Class_LRScheduler
flownmt/optim/lr_scheduler.py:4