cmd中测试torch.cuda.is_available()为true,但是在VScode里跑程序,则为false,帮我看看,我真的蒙了,初学者虚心学习!!
分两种排查方法吧
print(torch.__file__)