MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / sync_device

Function sync_device

tests/miocodec/miocodec_python_warm_bench.py:80–84  ·  view source on GitHub ↗
(backend: str, device: int)

Source from the content-addressed store, hash-verified

78
79
80def sync_device(backend: str, device: int) -> None:
81 if backend == "cuda":
82 import torch
83
84 torch.cuda.synchronize(device)
85
86
87def audio_summary(audio: np.ndarray, sample_rate: int, wall_ms: float) -> dict[str, Any]:

Callers 1

run_vc_onceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected