AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'(在python命令后面加上 --gpu_ids -1)

https://blog.csdn.net/weixin_39450145/article/details/104797786

原文地址:https://www.cnblogs.com/h694879357/p/14592119.html