(worker_id)
| 25 | torch.backends.cudnn.deterministic = True |
| 26 | |
| 27 | def seed_worker(worker_id): |
| 28 | worker_seed = torch.initial_seed() % 2**32 |
| 29 | np.random.seed(worker_seed) |
| 30 | random.seed(worker_seed) |
| 31 | |
| 32 | def evaluate_model(epoch, model, model_mol, device, loader, n_bins, writer, loss_fn, bins_values, train_BS, test_BS): |
| 33 | model.eval() |
nothing calls this directly
no outgoing calls
no test coverage detected