Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XuezheMax/flowseq
/ types & classes
Types & classes
56 in github.com/XuezheMax/flowseq
⨍
Functions
372
◇
Types & classes
56
↓ 10 callers
Class
NICE
NICE Flow
flownmt/flows/couplings/coupling.py:10
↓ 9 callers
Class
LinearWeightNorm
Linear with weight normalization
flownmt/nnet/weightnorm.py:6
↓ 7 callers
Class
DataIterator
flownmt/data/dataloader.py:245
↓ 6 callers
Class
ActNormFlow
flownmt/flows/actnorm.py:11
↓ 6 callers
Class
GlobalAttention
Global Attention between encoder and decoder
flownmt/nnet/attention.py:10
↓ 5 callers
Class
MultiHeadAttention
Multi-head Attention
flownmt/nnet/attention.py:98
↓ 5 callers
Class
NMTDataSet
flownmt/data/dataloader.py:33
↓ 4 callers
Class
PositionalEncoding
This module produces sinusoidal positional embeddings of any length. Padding symbols are ignored.
flownmt/nnet/positional_encoding.py:8
↓ 3 callers
Class
InvertibleMultiHeadFlow
flownmt/flows/linear.py:88
↓ 3 callers
Class
TransformerDecoderLayer
flownmt/nnet/transformer.py:23
↓ 2 callers
Class
Conv1dWeightNorm
Conv1d with weight normalization
flownmt/nnet/weightnorm.py:44
↓ 2 callers
Class
LabelSmoothedCrossEntropyLoss
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 callers
Class
NMTFlowBlock
NMT Flow Block
flownmt/flows/nmt.py:332
↓ 2 callers
Class
NMTFlowUnit
One Unit of NMTFlowStep
flownmt/flows/nmt.py:72
↓ 2 callers
Class
PositionwiseFeedForward
flownmt/nnet/attention.py:235
↓ 1 callers
Class
AdamW
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 callers
Class
DiffDiscreteMixLogisticLengthPredictor
flownmt/modules/priors/length_predictors/diff_discretized_mix_logistic.py:11
↓ 1 callers
Class
DiffSoftMaxLengthPredictor
flownmt/modules/priors/length_predictors/diff_softmax.py:11
↓ 1 callers
Class
ErrorHandler
A class that listens for exceptions in children processes and propagates the tracebacks to the parent process.
experiments/distributed.py:103
↓ 1 callers
Class
ExponentialScheduler
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 callers
Class
FlowNMT
NMT model with Generative Flow.
flownmt/flownmt.py:384
↓ 1 callers
Class
FlowNMTCore
core module for flow nmt model
flownmt/flownmt.py:17
↓ 1 callers
Class
InverseSquareRootScheduler
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 callers
Class
InvertibleLinearFlow
flownmt/flows/linear.py:11
↓ 1 callers
Class
NICEConvBlock
flownmt/flows/couplings/blocks.py:11
↓ 1 callers
Class
NICERecurrentBlock
flownmt/flows/couplings/blocks.py:51
↓ 1 callers
Class
NICESelfAttnBlock
flownmt/flows/couplings/blocks.py:88
↓ 1 callers
Class
NMTFlow
NMT Flow
flownmt/flows/nmt.py:429
↓ 1 callers
Class
NMTFlowPOSAttnUnit
Unit for POS Attention
flownmt/flows/nmt.py:13
↓ 1 callers
Class
NMTFlowStep
One step of NMTFlow
flownmt/flows/nmt.py:244
↓ 1 callers
Class
Prior
class for Prior with a NMTFlow inside
flownmt/modules/priors/prior.py:10
↓ 1 callers
Class
RecurrentCore
flownmt/modules/encoders/rnn.py:11
↓ 1 callers
Class
RecurrentCore
flownmt/modules/posteriors/rnn.py:13
↓ 1 callers
Class
RecurrentDecoder
Decoder with Recurrent Neural Networks
flownmt/modules/decoders/rnn.py:12
↓ 1 callers
Class
RecurrentEncoder
Src Encoder to encode source sentence with Recurrent Neural Networks
flownmt/modules/encoders/rnn.py:53
↓ 1 callers
Class
RecurrentPosterior
Posterior with Recurrent Neural Networks
flownmt/modules/posteriors/rnn.py:80
↓ 1 callers
Class
ShiftRecurrentCore
flownmt/modules/posteriors/shift_rnn.py:13
↓ 1 callers
Class
ShiftRecurrentPosterior
Posterior with Recurrent Neural Networks
flownmt/modules/posteriors/shift_rnn.py:107
↓ 1 callers
Class
SimpleDecoder
Simple Decoder to predict translations from latent z
flownmt/modules/decoders/simple.py:10
↓ 1 callers
Class
TransformerCore
flownmt/modules/encoders/transformer.py:13
↓ 1 callers
Class
TransformerCore
flownmt/modules/posteriors/transformer.py:14
↓ 1 callers
Class
TransformerDecoder
Decoder with Transformer
flownmt/modules/decoders/transformer.py:13
↓ 1 callers
Class
TransformerEncoder
Src Encoder to encode source sentence with Transformer
flownmt/modules/encoders/transformer.py:54
↓ 1 callers
Class
TransformerEncoderLayer
flownmt/nnet/transformer.py:6
↓ 1 callers
Class
TransformerPosterior
Posterior with Transformer
flownmt/modules/posteriors/transformer.py:70
Class
Additive
flownmt/flows/couplings/transform.py:17
Class
Affine
flownmt/flows/couplings/transform.py:35
Class
DataParallelFlow
Implements data parallelism at the flow level.
flownmt/flows/parallel/data_parallel.py:12
Class
Decoder
Decoder to predict translations from latent z
flownmt/modules/decoders/decoder.py:8
Class
Encoder
Src Encoder to encode source sentence
flownmt/modules/encoders/encoder.py:7
Class
Flow
Normalizing Flow base class
flownmt/flows/flow.py:6
Class
LengthPredictor
Length Predictor
flownmt/modules/priors/length_predictors/predictor.py:6
Class
NLSQ
flownmt/flows/couplings/transform.py:63
Class
Posterior
posterior class
flownmt/modules/posteriors/posterior.py:7
Class
Transform
flownmt/flows/couplings/transform.py:7
Class
_LRScheduler
flownmt/optim/lr_scheduler.py:4