Struct std::Vae
struct Vae {
struct Mlp enc;
struct Mlp muHead;
struct Mlp logvarHead;
struct Mlp dec;
struct VaeConfig cfg;
struct Rng rng;
float lastRecon;
float lastKl;
}Fields
trunk: x (+ label) -> hidden
hidden -> latent
hidden -> latent
z (+ label) -> x
Methods
mu of q(z|x) (y: class indices, read only by a CVAE).
decode(mu)
n new samples from the prior; 'labels' (n class indices) for a CVAE, null for an unconditional VAE.
Parameterized (module.h).
= drop()