add corruption suppor for autoencoder