That yields a TypeError:
TypeError: torch.FloatTensor constructor received an invalid combination of arguments - got (torch.cuda.ByteTensor), but expected one of:

no arguments
(int …)
didn’t match because some of the arguments have invalid types: (torch.cuda.ByteTensor)
(torch.FloatTensor viewed_tensor)
didn’t match because some of the arguments have invalid types: (torch.cuda.ByteTensor)
(torch.Size size)
didn’t match because some of the arguments have invalid types: (torch.cuda.ByteTensor)
(torch.FloatStorage data)
didn’t match because some of the arguments have invalid types: (torch.cuda.ByteTensor)
(Sequence data)
didn’t match because some of the arguments have invalid types: (torch.cuda.ByteTensor)