Fix AttributeError: 'NoneType' object has no attribute 'finalize' on TPU#6221
Merged
rohitgr7 merged 10 commits intoLightning-AI:masterfrom Mar 8, 2021
Merged
Fix AttributeError: 'NoneType' object has no attribute 'finalize' on TPU#6221rohitgr7 merged 10 commits intoLightning-AI:masterfrom
rohitgr7 merged 10 commits intoLightning-AI:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6221 +/- ##
=======================================
- Coverage 94% 90% -3%
=======================================
Files 161 161
Lines 11486 11376 -110
=======================================
- Hits 10745 10275 -470
- Misses 741 1101 +360 |
Borda
approved these changes
Feb 26, 2021
akihironitta
approved these changes
Feb 26, 2021
Contributor
Author
|
Thanks for the review. I've added bulle-list and CHANGELOG.md. |
akihironitta
approved these changes
Feb 26, 2021
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
SkafteNicki
approved these changes
Feb 26, 2021
carmocca
reviewed
Feb 26, 2021
carmocca
approved these changes
Feb 26, 2021
rohitgr7
reviewed
Feb 26, 2021
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
tchaton
approved these changes
Mar 3, 2021
Contributor
tchaton
left a comment
There was a problem hiding this comment.
Thanks for resolving my bug :)
s-rog
approved these changes
Mar 8, 2021
Closed
tchaton
pushed a commit
that referenced
this pull request
Mar 9, 2021
…TPU (#6221) * Fix bug Fix AttributeError: 'NoneType' object has no attribute 'finalize' * Update CHANGELOG.md * deleted a period * Update CHANGELOG.md Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> * Update CHANGELOG.md * Update pytorch_lightning/plugins/training_type/tpu_spawn.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Borda
pushed a commit
that referenced
this pull request
Mar 9, 2021
…TPU (#6221) * Fix bug Fix AttributeError: 'NoneType' object has no attribute 'finalize' * Update CHANGELOG.md * deleted a period * Update CHANGELOG.md Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> * Update CHANGELOG.md * Update pytorch_lightning/plugins/training_type/tpu_spawn.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
tchaton
pushed a commit
that referenced
this pull request
Mar 9, 2021
…TPU (#6221) * Fix bug Fix AttributeError: 'NoneType' object has no attribute 'finalize' * Update CHANGELOG.md * deleted a period * Update CHANGELOG.md Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> * Update CHANGELOG.md * Update pytorch_lightning/plugins/training_type/tpu_spawn.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
lexierule
pushed a commit
that referenced
this pull request
Mar 9, 2021
…TPU (#6221) * Fix bug Fix AttributeError: 'NoneType' object has no attribute 'finalize' * Update CHANGELOG.md * deleted a period * Update CHANGELOG.md Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> * Update CHANGELOG.md * Update pytorch_lightning/plugins/training_type/tpu_spawn.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Akihiro Nitta <nitta@akihironitta.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
This was referenced Mar 12, 2021
Closed
Closed
[tune](deps): Bump pytorch-lightning from 1.0.3 to 1.2.3 in /python/requirements
sumanthratna/ray#12
Closed
Closed
Closed
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix AttributeError: 'NoneType' object has no attribute 'finalize'
What does this PR do?
Issue
If you run the code written above, you will get the error below.
This bug is caused by not being able to handle the case where the attribute
loggerexists andlogger.finalizedoes not.CHANGE
pytorch_lightning/plugins/training_type/tpu_spawn.pythe 249th lineBEFORE
AFTER
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
This is the first pull request to OSS in my life. So, of course, yes:)