Let's use the autoencoder with MNIST data: mnist = input_data.read_data_sets('MNIST_data', one_hot = True).
Use StandardScalar from Scikit Learn's sklearn.preprocessing module to extract testmnist.test.images and training images mnist.train.images:
X_train, X_test = self.standard_scale(mnist.train.images, mnist.test.images).