This method is used for seeding the code and different points
()
| 52 | abl = "6" #To perform ablation in audio |
| 53 | |
| 54 | def seed(): |
| 55 | """ This method is used for seeding the code and different points""" |
| 56 | np.random.seed(seed_dyn) |
| 57 | random.seed(seed_dyn) |
| 58 | torch.manual_seed(seed_dyn) |
| 59 | torch.cuda.manual_seed(seed_dyn) |
| 60 | torch.backends.cudnn.enabled = False |
| 61 | torch.backends.cudnn.deterministic = True |
| 62 | |
| 63 | |
| 64 | def seed_worker(worker_id): |
no outgoing calls
no test coverage detected