Y = torch.from_numpy(wipeAndPupil).to(X.device) # wipeAndPupil 从numpy转换为tensor Y=Y.type(torch.cuda.FloatTensor)