Closed hsm207 closed 6 years ago
This is an implementation of the reparamerterization trick described in the VAE paper. Basically, replacing the non differentiable sampling operation with an arithmetic operation by using auxiliary stochastic variables.
In the GaussianVAE2D class definition in the file common_net.py, there is a method named sample.
This is how its defined:
I don't understand why noise is defined as a Variable because we do not need to differentiate the loss function with respect to it, do we?