hydra-zen icon indicating copy to clipboard operation
hydra-zen copied to clipboard

Update PL example for reproducibility

Open rsokl opened this issue 2 years ago • 0 comments

https://pytorch-lightning.readthedocs.io/en/stable/common/trainer.html#reproducibility

from pytorch_lightning import Trainer, seed_everything

seed_everything(42, workers=True)
# sets seeds for numpy, torch and python.random.
model = Model()
trainer = Trainer(deterministic=True)

rsokl avatar Apr 24 '22 18:04 rsokl