Ayushnangia's picture
fix
9765e4d
raw
history blame
149 Bytes
import torch
print("CUDA available:", torch.cuda.is_available())
if torch.cuda.is_available():
print("GPU name:", torch.cuda.get_device_name(0))