-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Allow reinits in sub procs #1149
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1149 +/- ##
======================================
- Coverage 93% 92% -0%
======================================
Files 61 61
Lines 2672 2676 +4
======================================
+ Hits 2472 2475 +3
- Misses 200 201 +1 |
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.
- add a note to changelog about this fix
- consider adding a simple test for DDP
if self._experiment is not None: | ||
state['_id'] = self._experiment.id | ||
else: | ||
state['_id'] = None |
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.
if self._experiment is not None: | |
state['_id'] = self._experiment.id | |
else: | |
state['_id'] = None | |
state['_id'] = self._experiment.id if self._experiment is not None else None |
if self._experiment: | ||
return self._experiment.project_name() | ||
else: | ||
return None |
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.
if self._experiment: | |
return self._experiment.project_name() | |
else: | |
return None | |
if self._experiment: | |
return self._experiment.project_name() | |
return None |
if self._experiment: | ||
return self._experiment.id | ||
else: | ||
return None |
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.
if self._experiment: | |
return self._experiment.id | |
else: | |
return None | |
if self._experiment: | |
return self._experiment.id | |
return None |
@vanpelt thx for you work, could you please check my comments so we can get it done :] |
Hey, any update here? |
This pull request is now in conflict... :( |
@vanpelt mind rebasing? looks like there are conflicts |
@vanpelt mind allow edit for maintainers? |
Finished in #1360 |
Before submitting
What does this PR do?
Fixes #981
When using multiprocessing the default behavior of wandb is to return None for multiple calls to init. Passing reinit=True ensure we always create an experiment. This could lead to cases where a single experiment has multiple runs in wandb, but it's a much better default than throwing an exception.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃