Hi, this works, a = torch.LongTensor(1).random_(0, 10).to("cuda"). but this won’t work:
a = torch.LongTensor(1).random_(0, 10)
a.to(device="cuda")

Is this per design, maybe I am simple missing something to convert tensor from CPU to CUDA?