Skip to content

Commit 6a86186

Browse files
Update neptune.py
1 parent e1d4541 commit 6a86186

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/lightning/pytorch/loggers/neptune.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,17 +1023,14 @@ def finalize(self, status: str) -> None:
10231023
@property
10241024
@override
10251025
def save_dir(self) -> Optional[str]:
1026-
"""Gets the save directory of the run.
1026+
"""Gets the save directory of the experiment which in this case is ``None`` because Neptune does not save
1027+
locally.
10271028
10281029
Returns:
1029-
the directory where experiment logs get saved
1030+
the root directory where experiment logs get saved
10301031
10311032
"""
1032-
return (
1033-
self.run._neptune_run_kwargs.get("log_directory", os.path.join(os.getcwd(), ".neptune"))
1034-
if hasattr(self.run, "_neptune_run_kwargs")
1035-
else os.path.join(os.getcwd(), ".neptune")
1036-
)
1033+
return os.path.join(os.getcwd(), ".neptune")
10371034

10381035
@rank_zero_only
10391036
def log_model_summary(self, model: "pl.LightningModule", max_depth: int = -1) -> None:

0 commit comments

Comments
 (0)