Stacked autoencoder in TensorFlow