summaryrefslogtreecommitdiff
path: root/gpu.py
blob: e40cb5fa839e0935ceeed2614778f80e22445a06 (plain)
1
2
3
4
5
import torch

print(torch.cuda.is_available())
print(torch.version.hip)
cuda = torch.device('cuda')