赞
踩
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
device = torch.device('cuda:0') inputs = inputs.to(device)
inputs = inputs.cuda()