Representation learning with maximum mean discrepancy convolutional variational autoencoder (MMD-VAE) This is a tensorflow 2 compatible version of the original code (tensorflow 1) posted by Sigrid Keydana on the TensorFlow for R blog. https://blogs.rstudio.com/tensorflow/posts/2018-10-22-mmd-vae/