Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xShug0/audio.cpp
/ sync_device
Function
sync_device
tests/stable_audio/stable_audio_python_warm_bench.py:225–227 ·
view source on GitHub ↗
(device: str)
Source
from the content-addressed store, hash-verified
223
224
225
def
sync_device(device: str) -> None:
226
if
str(device).startswith(
"cuda"
):
227
torch.cuda.synchronize(torch.device(device))
228
229
230
def
seed_all(seed: int) -> None:
Callers
2
run_request
Function · 0.70
main
Function · 0.70
Calls
1
device
Method · 0.45
Tested by
no test coverage detected