blazefl.reproducibility.setup_reproducibility#
- blazefl.reproducibility.setup_reproducibility(seed: int) None [source]#
Configures the environment-level settings for deterministic behavior.
This function sets the PYTHONHASHSEED for consistent hash-based operations and configures PyTorch’s cuDNN backend to use deterministic algorithms. Call this at the start of your script for a stable environment.
- Parameters:
seed – The seed value to use for the hash seed.