Skip to content

Commit

Permalink
Revert "Disable persistent_workers with num_workers=0 and disable pin…
Browse files Browse the repository at this point in the history
…_memory in DataModule "
  • Loading branch information
RaulPPelaez authored May 16, 2024
1 parent d8813f5 commit f30743c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchmdnet/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def _get_dataloader(self, dataset, stage, store_dataloader=True):
dataset=dataset,
batch_size=batch_size,
num_workers=self.hparams["num_workers"],
persistent_workers=True if self.hparams["num_workers"] > 0 else False,
pin_memory=False,
persistent_workers=True,
pin_memory=True,
shuffle=shuffle,
)

Expand Down

0 comments on commit f30743c

Please sign in to comment.