Skip to content

Commit

Permalink
train.py: shuffling at every epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelvalle committed Mar 16, 2019
1 parent bff304f commit f37998c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def prepare_dataloaders(hparams):
train_sampler = DistributedSampler(trainset) \
if hparams.distributed_run else None

train_loader = DataLoader(trainset, num_workers=1, shuffle=False,
train_loader = DataLoader(trainset, num_workers=1, shuffle=True,
sampler=train_sampler,
batch_size=hparams.batch_size, pin_memory=False,
drop_last=True, collate_fn=collate_fn)
Expand Down

0 comments on commit f37998c

Please sign in to comment.