(seed: int)
| 228 | |
| 229 | |
| 230 | def seed_all(seed: int) -> None: |
| 231 | torch.manual_seed(seed) |
| 232 | if torch.cuda.is_available(): |
| 233 | torch.cuda.manual_seed_all(seed) |
| 234 | np.random.seed(seed & 0xFFFFFFFF) |
| 235 | random.seed(seed) |
| 236 | |
| 237 | |
| 238 | def load_requests(args: argparse.Namespace) -> list[dict[str, Any]]: |
no outgoing calls
no test coverage detected