Spaces:
Sleeping
Sleeping
File size: 186 Bytes
239017e | 1 2 3 4 5 6 7 | import torch
print("CUDA Available:", torch.cuda.is_available())
if torch.cuda.is_available():
print("GPU Name:", torch.cuda.get_device_name(0))
else:
print("No GPU available.") |