Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _build_input_queue(
batch_size=global_batch_size,
shuffle=train,
sampler=None,
num_workers=4 if train else self.eval_num_workers,
num_workers=4,
prefetch_factor=10,
pin_memory=False,
drop_last=train,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _build_input_queue(
batch_size=ds_iter_batch_size,
shuffle=not USE_PYTORCH_DDP and is_train,
sampler=sampler,
num_workers=4 if is_train else self.eval_num_workers,
num_workers=4,
pin_memory=True,
drop_last=is_train)

Expand Down