(seed, flag)
| 55 | |
| 56 | |
| 57 | def set_seed(seed, flag): |
| 58 | if flag == True: |
| 59 | torch.manual_seed(seed) |
| 60 | torch.cuda.manual_seed(seed) |
| 61 | torch.cuda.manual_seed_all(seed) |
| 62 | |
| 63 | |
| 64 | def metrics(test_pre, test_real): |
nothing calls this directly
no outgoing calls
no test coverage detected