Specify the device for the input_image_tensor to avoid encountering the following error code when employing GPU for image-to-image operations.
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
Specify the device for the
input_image_tensor
to avoid encountering the following error code when employing GPU for image-to-image operations.