pytorch验证gpu可用

(3.9.7) xiaxinkai@tuf:~$ python
Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.cuda.is_available())
True
>>> exit()
(3.9.7) xiaxinkai@tuf:~$ 

你可能感兴趣的:(pytorch,深度学习,视觉检测)