(seed = 42)
| 30 | param_group["lr"] = lr |
| 31 | |
| 32 | def seed_everthing(seed = 42): |
| 33 | os.environ["PYTHONHASHSEED"] = str(seed) |
| 34 | random.seed(seed) |
| 35 | np.random.seed(seed) |
| 36 | torch.manual_seed(seed) |
| 37 | torch.cuda.manual_seed(seed) |
| 38 | torch.cuda.manual_seed_all(seed) |
| 39 | torch.backends.cudnn.deterministic=True |
| 40 | torch.backends.cudnn.benchmark=False |
| 41 | |
| 42 | |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected