Provides TensorFlow code to convert an RGB (888) image data to grayscale. It's best used in models which are provided with RGB data but don't need the colors to make predictions. Grayscaling will then reduce the complexity of the model with little processing.