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

Function seed_all

tests/stable_audio/stable_audio_python_warm_bench.py:230–235  ·  view source on GitHub ↗
(seed: int)

Source from the content-addressed store, hash-verified

228
229
230def seed_all(seed: int) -> None:
231 torch.manual_seed(seed)
232 if torch.cuda.is_available():
233 torch.cuda.manual_seed_all(seed)
234 np.random.seed(seed & 0xFFFFFFFF)
235 random.seed(seed)
236
237
238def load_requests(args: argparse.Namespace) -> list[dict[str, Any]]:

Callers 2

run_requestFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected