出现的问题:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument running_mean in method wrapper__cudnn_batch_norm)
困扰了好几天,设置model.to(device)没有问题,但是出现在运行后就出现有多个设备的问题。
参考了
在这个文件夹中:........site-packages/to