Skip to content

Commit

Permalink
mypy and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Nov 12, 2022
1 parent 1de7ff6 commit 3ab20e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytorch_lightning/loggers/csv_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(
flush_logs_every_n_steps: int = 100,
):
super().__init__()
self._save_dir = save_dir
self._save_dir = os.fspath(save_dir)
self._name = name or ""
self._version = version
self._prefix = prefix
Expand Down
2 changes: 2 additions & 0 deletions src/pytorch_lightning/loggers/tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
_TENSORBOARD_AVAILABLE = RequirementCache("tensorboard>=2.9.1")
if TYPE_CHECKING and _TENSORBOARD_AVAILABLE:
from torch.utils.tensorboard import SummaryWriter
else:
SummaryWriter = Any


class TensorBoardLogger(Logger):
Expand Down

0 comments on commit 3ab20e8

Please sign in to comment.