fashion-tag-generator / gpu_check.py
lele-cecere's picture
Added docker commands and gpu_check.py
b404604
raw
history blame
173 Bytes
import torch
if torch.cuda.is_available():
print("CUDA GPU is available")
print("GPU:", torch.cuda.get_device_name(0))
else:
print("CUDA GPU is not available")