Skip to content
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

only global rank 0 can log tensorboard data; avoid multi gpu/node race for the log directory #296

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

arashashari
Copy link
Contributor

No description provided.

self.sample_count = 0
if self.tensorboard_enabled():
if self.tensorboard_enabled() and self.global_rank == 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps initialize this to None on other ranks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about resolving it here but was not sure if it is used anywhere else or not.

@arashashari arashashari merged commit 1f97242 into master Jul 21, 2020
@jeffra jeffra deleted the TensorBoardDirctoryBugFix branch July 22, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants