An autoencoder without the decoder