Im not able to assign int64 to torch tensor. I have got the following tensor
tempScale = torch.zeros((total, len(scale))).cuda() if useGpu else torch.zeros((nbPatchTotal, len(scale)))
In my code, when I'm using the following line, it's throwing an error message
tmpScale[:, j] = scale
The error message is
TypeError: can't assign a numpy.int64 to a torch.cuda.FloatTensor
what am I missing?