john123:

tensorflow-mnist-vae/mnist_vae.ipynb at master · CharlesD1ng/tensorflow-mnist-vae · GitHub.


For TF 1, maybe you can adapt this code: VAE-Tensorflow/src at master · ChengBinJin/VAE-Tensorflow · GitHub 2
And, in comparison, this TF 2 code circa December 2019 is quite clean: Deep-Learning-with-TensorFlow-2-and-Keras/VAE.ipynb at master · sujitpal/Deep-Learning-with-TensorFlow-2-and-Keras · GitHub 4