Skip to content

Commit 0572a9e

Browse files
committed
drop last
1 parent 1f49f6b commit 0572a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def restore_parts(path, model):
963963
data_loader = data_utils.DataLoader(
964964
dataset, batch_size=hparams.batch_size,
965965
num_workers=hparams.num_workers, sampler=sampler,
966-
collate_fn=collate_fn, pin_memory=hparams.pin_memory)
966+
collate_fn=collate_fn, pin_memory=hparams.pin_memory, drop_last=True)
967967

968968
device = torch.device("cuda" if use_cuda else "cpu")
969969

0 commit comments

Comments
 (0)