Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lenML
/
ChatTTS-Forge
like
234
Running
on
Zero
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
d5b3cd8
ChatTTS-Forge
/
modules
/
devices.py
zhzluke96
update
84cfd61
8 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()