-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix dirpath
in log_dir
for CSVLogger
#16401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
b08918a
6a88e1f
6ae537a
3a5dede
2ebdabd
8664590
d0e0367
576a881
4b61606
91fa593
ed10d8a
12ea2c9
875319e
8b0b8a2
a9a86c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1807,10 +1807,8 @@ def model(self, model: torch.nn.Module) -> None: | |
@property | ||
def log_dir(self) -> Optional[str]: | ||
if len(self.loggers) > 0: | ||
if not isinstance(self.loggers[0], TensorBoardLogger): | ||
dirpath = self.loggers[0].save_dir | ||
else: | ||
dirpath = self.loggers[0].log_dir | ||
logger_ = self.loggers[0] | ||
dirpath = getattr(logger_, "log_dir", getattr(logger_, "save_dir", None)) | ||
|
||
else: | ||
dirpath = self.default_root_dir | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.