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