Yesss! it worked thank you!
Can I ask where I can find an explanation to it?
because on this type table 2 the only references of ByteTensor are for integers.
Also the code error was
RuntimeError: expected scalar type Byte but found Float

I know that I have at the beginnng a float cv::Mat of dtype CV_32FC3  that I converted to torch::tensor of dtype at::kByte. So does the at::kByte conversion somehow keeps the float type without letting the model using it ?
I am not contesting your answer just trying to understand  how this error was formed because it displayed the opposite of what I understood I had to do.
Thank you again !