ShynBui's picture
f
7f6b51d
raw
history blame
99 Bytes
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print(device)