Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMOSS/MOSS-TTS
/ _sync
Function
_sync
moss_tts_delay/llama_cpp/gpu_monitor.py:101–108 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
99
100
101
def
_sync():
102
gc.collect()
103
try
:
104
import
torch
105
if
torch.cuda.is_available():
106
torch.cuda.synchronize()
107
except
ImportError:
108
pass
109
110
111
def
_torch_allocated_mb() -> float:
Callers
1
snapshot
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected