Spaces:
Build error

File size: 134 Bytes
3a078df
 
 
 
 
1
2
3
4
5
import torch

devices = [f"cuda:{i} => {torch.cuda.get_device_name(i)}" for i in range(torch.cuda.device_count())]

print(devices)