Images are 2D arrays of pixels. In most cases pixel is 0…255 (unsigned char) for grey scale or triplets of 0…255 values for colour images. To feed these into TensorRT as inputs we have to convert them to CHW format which is OK (but would still be nice to have an option to do this on GPU through TensorRT). But also each intensity value needs to be converted to float32 which leads to 4x increase in amount of data sent to GPU plus this needs to be done on CPU.
My question is there an option to feed array of unsigned chars as input to TensorRT without conversion to float? Even better if it would be possible to feed HWC array.