Imported from https://github.com/natashamjaques/MultimodalAutoencoder