preprocessInput

fun preprocessInput(floatArray: FloatArray, tensorShape: LongArray? = null, inputType: InputType, channelsLast: Boolean = true): FloatArray

Common preprocessing functions for the Neural Networks trained on ImageNet and whose weights are available with the keras.application.

It takes floatArray as input with shape tensorShape and calls specific preprocessing according chosen inputType.