Debug a 'torch.tensor(1).cuda()' hanging