-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Use irange in a few places #55325
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
Use irange in a few places #55325
Conversation
💊 CI failures summary and remediationsAs of commit 6e07408 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
|
This pull request was exported from Phabricator. Differential Revision: D27573006 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D27573006 |
c1fb245 to
a894f43
Compare
Codecov Report
@@ Coverage Diff @@
## master #55325 +/- ##
==========================================
+ Coverage 76.36% 77.42% +1.05%
==========================================
Files 2022 1891 -131
Lines 202455 187521 -14934
==========================================
- Hits 154611 145181 -9430
+ Misses 47844 42340 -5504 |
torch/lib/c10d/ProcessGroupMPI.cpp
Outdated
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.
Curious to know what is the benefit of using irange instead of regular loops? Is this mostly for readability?
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've answered more fully via DM. In short: type safety, const safety, and consistency.
|
This pull request was exported from Phabricator. Differential Revision: D27573006 |
a894f43 to
b6318c5
Compare
Summary: Pull Request resolved: pytorch#55325 Test Plan: Sandcastle Differential Revision: D27573006 fbshipit-source-id: eea0a1a28674f14ac68ecad1c656c72fd8a8fabb
|
This pull request was exported from Phabricator. Differential Revision: D27573006 |
b6318c5 to
6e07408
Compare
|
This pull request has been merged in 93140a3. |
Summary: Pull Request resolved: pytorch#55325 Test Plan: Sandcastle Reviewed By: SciPioneer Differential Revision: D27573006 fbshipit-source-id: 647b5da3901e92c23e95b2fe5e833e9081d72837
Differential Revision: D27573006