File size: 156 Bytes
7cd7caf
 
 
 
 
 
1
2
3
4
5
6
import torch

print(torch.cuda.is_available())
print(torch.cuda.device_count())
print(torch.cuda.current_device())
print(torch.cuda.get_device_name(0))