Files
xtts-server/worker/core/gpu_detect.py

5 lines
86 B
Python

import torch
def device():
return 'cuda' if torch.cuda.is_available() else 'cpu'