convery float images to tensor code example Example: Cast image to float32 tf.cast(x=image, dtype=tf.float32)