MCPcopy 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
225def sync_device(device: str) -> None:
226 if str(device).startswith("cuda"):
227 torch.cuda.synchronize(torch.device(device))
228
229
230def seed_all(seed: int) -> None:

Callers 2

run_requestFunction · 0.70
mainFunction · 0.70

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected