(worker_id)
| 53 | print("The length of train set is: {}".format(len(db_train))) |
| 54 | |
| 55 | def worker_init_fn(worker_id): |
| 56 | random.seed(args.seed + worker_id) |
| 57 | |
| 58 | trainloader = DataLoader(db_train, batch_size=batch_size, shuffle=True, num_workers=8, pin_memory=True, |
| 59 | worker_init_fn=worker_init_fn) |
nothing calls this directly
no outgoing calls
no test coverage detected