MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / set_random_seed

Function set_random_seed

fastdeploy/utils.py:442–446  ·  view source on GitHub ↗
(seed: int)

Source from the content-addressed store, hash-verified

440
441
442def set_random_seed(seed: int) -> None:
443 if seed is not None:
444 random.seed(seed)
445 np.random.seed(seed)
446 paddle.seed(seed)
447
448
449def get_limited_max_value(max_value):

Callers 13

init_deviceMethod · 0.90
init_deviceMethod · 0.90
init_deviceMethod · 0.90
init_deviceMethod · 0.90
init_deviceMethod · 0.90
init_deviceMethod · 0.90
init_deviceMethod · 0.90
offline_infer_checkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected