Skip to content

anshuln/ImprovedFlowNetworks

Repository files navigation

ImprovedFlowNetworks

Some tricks to improve flow networks The Modular branch is maintained currently.

The following are implemented -

  1. Faster fft of real valued vectors by exploiting complex symmetry of the fourier transforms.
    • The major contribution here was to register gradients for tf.irfft3d and writing an implementation for rfft3d
  2. Gradient checkpointing for invertible networks allowing for constant memory backprop
    • gradient_checkpointing.py contains relevant layer and model classes which can be generalized to other models.
  3. Variational dequantization according to this paper.
    • dequantization.py contains the FlowWithDequant class which can wrap around any flow to make it dequantized.

About

Some tricks to improve normalizing flows

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages