module ‘torch._C’ has no attribute ‘_cuda_setDevice’ 原因:代码调用cuda(gpu),但是当前机器没有cuda 解决:代码设置一下cuda.device为cpu即可