voice-detection-api / check_cuda.py
aadhi97x's picture
clean commit
6c1314b
raw
history blame contribute delete
239 Bytes
import torch
print(f"CUDA Available: {torch.cuda.is_available()}")
if torch.cuda.is_available():
print(f"Device Name: {torch.cuda.get_device_name(0)}")
print(f"CUDA Version: {torch.version.cuda}")
else:
print("Running on CPU")