On Training Deep Generative Models With Latent Variables