Amortized Inference In Latent Space Energy-Based Prior Model