def preprocessing(image): image = tf.subtract(image, 0.5) image = tf.multiply(image, 2.0) return image