Trying combine GAN generator and critic to train both as VAE. Base code is here. Code modified to create encoder on top of critic:
def _build_critic(self): #