set_seeds_globally¶
-
class
maze.core.utils.seeding.
set_seeds_globally
(seed: int, set_cudnn_determinism: bool, info_txt: str)¶ Set random seeds for numpy, torch and python random number generators.
- Parameters
seed – The seed to be used.
set_cudnn_determinism – Specify whether to set the cudnn backend to deterministic.
info_txt – Optional info text to print with the seed info.