hydra-zen
hydra-zen copied to clipboard
Update PL example for reproducibility
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)