Skip to content

Commit

Permalink
Add docstrings to Test Tube logger (#9110)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamblebam authored Aug 25, 2021
1 parent f01a9a6 commit 9d62f24
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pytorch_lightning/loggers/test_tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,35 @@ def close(self) -> None:

@property
def save_dir(self) -> Optional[str]:
"""
Gets the save directory.
Returns:
The path to the save directory.
"""
return self._save_dir

@property
def name(self) -> str:
"""
Gets the experiment name.
Returns:
The experiment name if the experiment exists, else the name specified in the constructor.
"""
if self._experiment is None:
return self._name

return self.experiment.name

@property
def version(self) -> int:
"""
Gets the experiment version.
Returns:
The experiment version if the experiment exists, else the next version.
"""
if self._experiment is None:
return self._version

Expand Down

0 comments on commit 9d62f24

Please sign in to comment.