Skip to content

Commit e59e21e

Browse files
authored
Update tabular_datamodule.py for torch.load
1 parent ea76568 commit e59e21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytorch_tabular/tabular_datamodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def _load_dataset_from_cache(self, tag: str = "train"):
758758
)
759759
elif self.cache_mode is self.CACHE_MODES.DISK:
760760
try:
761-
dataset = torch.load(self.cache_dir / f"{tag}_dataset")
761+
dataset = torch.load(self.cache_dir / f"{tag}_dataset", weights_only=False)
762762
except FileNotFoundError:
763763
raise FileNotFoundError(
764764
f"{tag}_dataset not found in {self.cache_dir}. Please provide the" f" data for {tag} dataloader"

0 commit comments

Comments
 (0)