I know that the solution you provided works, but what I am confused is why if I actually have a float Tensor then it doesn’t work:
inputs = transform(inputs)

Error:
TypeError: pic should be PIL Image or ndarray. Got <class 'torch.FloatTensor'>

I see what the error says but why wouldn’t transforms work for FloatTensors? It seems so counter intuitive to me.