import torch torch.cuda.is_available() True torch.cuda.current_device() 0 torch.cuda.device(0) <torch.cuda.device object at 0x0000023034332438> torch.cuda.device_count() 1 torch.cuda.get_device_name(0) 'GeForce GTX 1660' ————————————————
版權聲明:本文為CSDN博主「Mr.Jcak」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/weixin_38314865/article/details/102410371