gpu=torch.device("cuda:%s"%gpuid)
model = torch.load(input).eval().cuda()
torch.cuda.set_device(gpuid)
print("当前设备:",torch.cuda.current_device())
gpu=torch.device("cuda:%s"%gpuid)
model = torch.load(input).eval().cuda()
torch.cuda.set_device(gpuid)
print("当前设备:",torch.cuda.current_device())