Skip to content

AbstractVAE methods #11

@vitskvara

Description

@vitskvara

I have an issue with methods such as

encoder_mean(m::AbstractVAE, x::AbstractArray) = m.encoder(x)

This is not gonna work with a classical VAE where the last layer of encoder contains both means and sigmas. Maybe change this to

encoder_mean(m::AbstractVAE, x::AbstractArray) = mean(m,m.encoder(x))

or something similar? That would however require that the model contains some label with what kind of VAEit is. This is also ttrue for decoder, where you can have fixed/scalar/diagonal sigmas. Or is there some advantage of using the TrackedArray sigmas separated as in your case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions