PyTorch查看CUDA和CUDNN版本
>>> import torch
>>> print(torch)
<module 'torch' from '/home/fanrui/code_pytorch/pytorch.master/torch/__init__.py'>
>>> torch.__version__
'2.0.0a0+gitb8151d2'
>>>
>>> torch.cuda.is_available()
True
>>> torch.version.cuda
'11.7'
>>>
>>> torch.backends.cudnn.is_available()
False
>>> torch.backends.cudnn.version()
>>>
>>>
查看PyTorch版本的对应的git commit id
python -c 'import torch; print(torch.version.git_version)'
标签:git,version,torch,cudnn,PyTorch,backends
From: https://www.cnblogs.com/memoryart/p/pytorch.html