AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
在网上查找方法说是运行命令python train.py --data_dir sample_dataset --gpu_ids -1,这个是在Anaconda Prompt中运行吗,还是在Anaconda Prompt里面输入python后再运行,作为初学者有点糊涂这个具体步骤。另外还有方法说是“也可以在文件中,直接把参数gpu_ids的默认值改成-1”,想问下这个具体在哪个文件中改呢,找了半天也没找到可改的地方
https://blog.csdn.net/weixin_39450145/article/details/104797786