Thresh Frazier
Results
2
comments of
Thresh Frazier
train.py中修改: device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") cnn = CNN().to(device) images = Variable(images).to(device) labels = Variable(labels.float()).to(device)  else "cpu")