Replies: 2 comments
-
>>> erogol |
Beta Was this translation helpful? Give feedback.
0 replies
-
>>> btomtom5 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
>>> btomtom5
[June 21, 2019, 5:55am]
Is there a reason that the DataLoader sets pin_memory=false?
loader = DataLoader(
dataset,
batch_size=c.eval_batch_size if is_val else c.batch_size,
shuffle=False,
collate_fn=dataset.collate_fn,
drop_last=False,
sampler=sampler,
num_workers=c.num_val_loader_workers
if is_val else c.num_loader_workers,
pin_memory=False)
return loader
As I understand it, pin_memory speeds up transfers from host to device.
Perhaps it's because it has been determined that this is not a
bottleneck in the training?
[This is an archived TTS discussion thread from discourse.mozilla.org/t/enable-faster-training-by-pinning-data-to-memory]
Beta Was this translation helpful? Give feedback.
All reactions