Generative Models #
Config-style constructors for runnable generative examples.
These models act on a trailing feature axis and preserve the caller's batchShape. Examples may
flatten structured observations before applying them, while convolutional or operator-based
models can use their own shape-specific constructors.
Widths shared by dense generative models.
Instances For
Autoencoder backbone: x -> hidden -> latent -> hidden -> reconstruction.
The reconstruction is unconstrained. Append an output activation such as nn.sigmoid when the
data domain requires one.
Instances For
Generator backbone z -> x.
The generated values are unconstrained. Choose an output activation at the call site to match the training data and objective.
Instances For
Discriminator x -> logits.
Returning logits keeps the model compatible with numerically stable objectives such as
TorchLean.Loss.bceWithLogits. Append nn.sigmoid only when probabilities are required.