今天发现一个很有意思的东西
import torch
import os
# Specify the GPU device
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
print(torch.cuda.is_available())

但是如果修改下面的设置后,结果就变成了
import torch
import os
# Specify the GPU device
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
print(torch.cuda.is_available())












![[内网渗透]XXE-vulnhub](https://img-blog.csdnimg.cn/img_convert/35db2e2c53a52f1505f5a527b71cb045.png)







