python-detector-worker/debug/cuda.py
Pongsatorn Kanjanasantisak b7d8b3266f add StrongSORT Tacker
2025-08-10 01:23:09 +07:00

4 lines
No EOL
191 B
Python

import torch
print(torch.cuda.is_available()) # True if CUDA is available
print(torch.cuda.get_device_name(0)) # GPU name
print(torch.version.cuda) # CUDA version PyTorch was compiled with