Skip to content

Commit

Permalink
Set persistent_workers to True in test dataloader (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
HangJung97 committed Jun 8, 2024
1 parent 412c1d9 commit 4ceef9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ascent/datamodules/nnunet_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def test_dataloader(self) -> DataLoader: # noqa: D102
num_workers=self.hparams.num_workers,
pin_memory=self.hparams.pin_memory,
shuffle=False,
persistent_workers=True,
)

def get_train_val_test_loading_transforms(self) -> tuple[list[Callable], ...]:
Expand Down

0 comments on commit 4ceef9b

Please sign in to comment.