The variational autoencoder