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?