RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same原因Input type and weight type not be samefixeddevice = torch.device("cpu")model = MyModel()model.to(device)input.to(device)model(input)# cpu o