Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomInvivo committed Aug 11, 2023
1 parent bdf14d1 commit 4c08b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphium/data/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ def setup(
labels_size = {}
labels_dtype = {}
if stage == "fit" or stage is None:
if self.processed_graph_data_path is not None:
if self.dataloading_from == "disk":
processed_train_data_path = self._path_to_load_from_file("train")
assert self._data_ready_at_path(
processed_train_data_path
Expand Down
4 changes: 3 additions & 1 deletion profiling/profile_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def main():

with fsspec.open(CONFIG_PATH, "r") as f:
cfg = yaml.safe_load(f)
cfg["datamodule"]["args"]["processed_graph_data_path"] = "graphium/data/cache/profiling/predictor_data.cache"
cfg["datamodule"]["args"][
"processed_graph_data_path"
] = "graphium/data/cache/profiling/predictor_data.cache"
# cfg["datamodule"]["args"]["df_path"] = DATA_PATH
cfg["trainer"]["trainer"]["max_epochs"] = 5
cfg["trainer"]["trainer"]["min_epochs"] = 5
Expand Down

0 comments on commit 4c08b56

Please sign in to comment.