def _preprocess_image(encoded_image):
    'Preprocess a single raw image.'
    image = tf.image.decode_image(encoded_image, channels=shape[(- 1)])
    image.set_shape(shape)
    return tf.cast(image, dtype)
Preprocess a single raw image.
def _preprocess_image(encoded_image):
    
    image = tf.image.decode_image(encoded_image, channels=shape[(- 1)])
    image.set_shape(shape)
    return tf.cast(image, dtype)