Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
lenML/ChatTTS-Forge
wffcyrus
/
ChatTTS-Forge
like
0
Running
App
Files
Files
Community
ec6a7d0
ChatTTS-Forge
/
modules
/
devices.py
zhzluke96
update
84cfd61
5 months ago
raw
Copy download link
history
blame
Safe
179 Bytes
import
torch
def
torch_gc
():
if
torch.cuda.is_available():
with
torch.cuda.device(
"cuda"
):
torch.cuda.empty_cache()
torch.cuda.ipc_collect()