-
Notifications
You must be signed in to change notification settings - Fork 617
[Metrics] Allow getting wandb project name via WANDB_PROJECT
#888
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
Conversation
fegin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with the WANDB part. But from torch.utils.tensorboard is the standard PyTorch path not from another repro. So prefer not to use lazy initialization for this.
| from typing import Any, Dict, Optional | ||
|
|
||
| import torch | ||
| from torch.utils.tensorboard import SummaryWriter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have similar question. I'd imagine:
torch.utils.tensorboardis available as long as torch is installed. And it can generate TB logs even iftensorboardlibrary is not installed.tensorboardlibrary can be used to render the TB logs through SSH tunneling.
If that's the case, we can always keeptorch.utils.tensorboardimport.
But I could be wrong.
tensorboard dep & allow getting project nam…WANDB_PROJECT
tianyu-l
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…es from env This commit 1. Move the `tensorboard` imports into class so that it will not raise errors if `tensorboard` not installed. 2. Allow users to obtain `wandb` project name from the env variable `WANDB_PROJECT`, which is defined in their docs.
…ch#888) This commit 1. Move the `tensorboard` imports into class so that it will not raise errors if `tensorboard` not installed. 2. Allow users to obtain `wandb` project name from the env variable `WANDB_PROJECT`, which is defined in their docs.
…ch#888) This commit 1. Move the `tensorboard` imports into class so that it will not raise errors if `tensorboard` not installed. 2. Allow users to obtain `wandb` project name from the env variable `WANDB_PROJECT`, which is defined in their docs.
This commit
tensorboardimports into class so that it will not raise errors iftensorboardnot installed.wandbproject name from the env variableWANDB_PROJECT, which is defined in their docs.