-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix typing annotations for the ipu strategy #13786
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
Fix typing annotations for the ipu strategy #13786
Conversation
|
Hmm, ok the mypy test was passing locally, perhaps missed something when I rebased. Will fix. |
Codecov Report
@@ Coverage Diff @@
## master #13786 +/- ##
=========================================
+ Coverage 61% 76% +15%
=========================================
Files 341 341
Lines 26564 26620 +56
=========================================
+ Hits 16214 20239 +4025
+ Misses 10350 6381 -3969 |
for more information, see https://pre-commit.ci
0c9d68a to
44bb884
Compare
|
Hi @HalestormAI, do you need some help with finalizing this PR? 💪 |
|
Yes please - went round in circles a few times trying to resolve the typing clash on |
otaj
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! I added a small commit resolving those last couple errors. We'll see how the IPU CI likes it 💪
|
Adding a bunch of asserts at correct places seemed to help, so now we're green with the tests again 🎉 |
|
Great! Thanks @otaj . I was trying to avoid all the asserts, but I guess that's the only way! |
|
Should I update branch then create review? Do you prefer merge or rebase to line this up with master? |
|
We are "merge" folks :) There's also a button "Update branch" (I don't know if you have it as well), which will merge master for you if there are no conflicts :) |
|
Thanks @otaj - I've updated the branch and fixed the suggestion above. Once the CI completes I'll put it in for review |
awaelchli
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.
Solid
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Co-authored-by: Rohit Gupta <[email protected]>
Fixes mypy errors attributed to
pytorch_lightning/strategies/ipu.pyfor issue #13445Part of #13445
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃