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

Function seed_all

tests/vibevoice/vibevoice_python_warm_bench.py:150–154  ·  view source on GitHub ↗
(seed: int, backend: str)

Source from the content-addressed store, hash-verified

148
149
150def seed_all(seed: int, backend: str) -> None:
151 torch.manual_seed(seed)
152 np.random.seed(seed)
153 if backend == "cuda":
154 torch.cuda.manual_seed_all(seed)
155
156
157def move_batch_to_device(batch: dict[str, Any], device: str) -> dict[str, Any]:

Callers 2

run_onceFunction · 0.70
run_batchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected