blazefl.reproducibility.seed_everything

blazefl.reproducibility.seed_everything#

blazefl.reproducibility.seed_everything(seed: int) None[source]#

Seeds the global random number generators for all relevant libraries.

This function sets a single seed for Python’s random module, NumPy, and PyTorch to ensure that results are consistent across runs. It directly manipulates the global state of these libraries.

Parameters:

seed – The integer value for the seed.