So I have a couple of questions here:

I am not sure why when I use the line  image = loader(image).float() I receive an error. Do you have any idea? but if i dont use it, it works.

Here is the error that I get:
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

when I do the classification, e.g. resnet = models.resnet18(pretrained = True);
predicted = resnet(inputVar) and plot the predicted values, the min and max values are -2.3611, and 2.4880, respectively.
However, shouldnot the min and max values be between 0 and 1?