We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f54e1 commit 7ecf315Copy full SHA for 7ecf315
torch/utils/data/dataloader.py
@@ -246,6 +246,8 @@ def __init__(self, loader):
246
247
self.sample_iter = iter(self.batch_sampler)
248
249
+ base_seed = torch.LongTensor(1).random_()[0]
250
+
251
if self.num_workers > 0:
252
self.worker_init_fn = loader.worker_init_fn
253
self.index_queues = [multiprocessing.Queue() for _ in range(self.num_workers)]
@@ -258,7 +260,6 @@ def __init__(self, loader):
258
260
self.rcvd_idx = 0
259
261
self.reorder_dict = {}
262
- base_seed = torch.LongTensor(1).random_()[0]
263
self.workers = [
264
multiprocessing.Process(
265
target=_worker_loop,
0 commit comments