Imported from https://github.com/kclip/meta-autoencoder-without-channel-model