Because I want to resize the tensor from random size to (32×32). (.view() may not work)However, I do not know if there is a function in pytorch? I want to translate to numpy and call the cv2.resize to do it. And then I have to translate it back to the tensor to forward in GPU.
Maybe I am wrong.Or how can I resize the tensor directly?