Skip to content

Commit aa62476

Browse files
Fix load annotations in bnlearn (weights only = False)
1 parent ec50602 commit aa62476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch_concepts/data/datasets/bnlearn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ def build(self):
152152
def load_raw(self):
153153
self.maybe_build()
154154
logger.info(f"Loading dataset from {self.root_dir}")
155-
embeddings = torch.load(self.processed_paths[0])
155+
embeddings = torch.load(self.processed_paths[0], weights_only=False)
156156
concepts = pd.read_hdf(self.processed_paths[1], "concepts")
157-
annotations = torch.load(self.processed_paths[2])
157+
annotations = torch.load(self.processed_paths[2], weights_only=False)
158158
graph = pd.read_hdf(self.processed_paths[3], "graph")
159159
return embeddings, concepts, annotations, graph
160160

0 commit comments

Comments
 (0)