We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a22ba commit a2c6057Copy full SHA for a2c6057
pytorch_lightning/utilities/seed.py
@@ -53,6 +53,8 @@ def seed_everything(seed: Optional[int] = None) -> int:
53
rank_zero_warn(f"{seed} is not in bounds, numpy accepts from {min_seed_value} to {max_seed_value}")
54
seed = _select_seed_randomly(min_seed_value, max_seed_value)
55
56
+ # using `log.info` instead of `rank_zero_info`,
57
+ # so users can verify the seed is properly set in distributed training.
58
log.info(f"Global seed set to {seed}")
59
os.environ["PL_GLOBAL_SEED"] = str(seed)
60
random.seed(seed)
0 commit comments