import torch
print("Pytorch version:")
print(torch.__version__)
print("CUDA Version: ")
print(torch.version.cuda)
print("cuDNN version is :")
print(torch.backends.cudnn.version())
print("torch.cuda.is_available():",torch.cuda.is_available())
print("torch.cuda.current_device():",torch.cuda.current_device())
print("torch.cuda.device_count():",torch.cuda.device_count())
print("torch.cuda.get_device_name(0):",torch.cuda.get_device_name(0))
Pytorch version:
1.12.0+cu116
CUDA Version:
11.6
cuDNN version is :
8500
torch.cuda.is_available(): True
torch.cuda.current_device(): 0
torch.cuda.device_count(): 1
torch.cuda.get_device_name(0): NVIDIA GeForce RTX 2050