Esempio n. 1
0
def test_diagonal_gaussian_prior_initialize_parameters():
    """
    DiagonalGaussianPrior.initialize_parameters works without crashing
    """
    prior = DiagonalGaussianPrior()
    vae = DummyVAE()
    prior.set_vae(vae)
    prior.initialize_parameters(nhid=5)
Esempio n. 2
0
def test_diagonal_gaussian_prior_initialize_parameters():
    """
    DiagonalGaussianPrior.initialize_parameters works without crashing
    """
    prior = DiagonalGaussianPrior()
    vae = DummyVAE()
    prior.set_vae(vae)
    prior.initialize_parameters(nhid=5)
Esempio n. 3
0
def test_diagonal_gaussian_prior_log_p_z():
    """
    DiagonalGaussianPrior.log_p_z works without crashing
    """
    prior = DiagonalGaussianPrior()
    vae = DummyVAE()
    prior.set_vae(vae)
    prior.initialize_parameters(nhid=5)
    z = T.tensor3("z")
    prior.log_p_z(z)
Esempio n. 4
0
def test_diagonal_gaussian_prior_log_p_z():
    """
    DiagonalGaussianPrior.log_p_z works without crashing
    """
    prior = DiagonalGaussianPrior()
    vae = DummyVAE()
    prior.set_vae(vae)
    prior.initialize_parameters(nhid=5)
    z = T.tensor3('z')
    prior.log_p_z(z)