This commit is contained in:
Glenn Jocher 2019-04-17 12:42:10 +02:00
parent f5d343b9a6
commit 447a3d923d
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ def train(
dataloader = DataLoader(dataset, dataloader = DataLoader(dataset,
batch_size=batch_size, batch_size=batch_size,
num_workers=num_workers, num_workers=num_workers,
shuffle=False, shuffle=True,
pin_memory=True, pin_memory=True,
collate_fn=dataset.collate_fn, collate_fn=dataset.collate_fn,
sampler=sampler) sampler=sampler)