-
Notifications
You must be signed in to change notification settings - Fork 23.6k
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 for loops #66234
use irange for loops #66234
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 13a51ce (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
This pull request was exported from Phabricator. Differential Revision: D30652629 |
This pull request was exported from Phabricator. Differential Revision: D30652629 |
976427f
to
0b0ffff
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
0b0ffff
to
2cbe568
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
2cbe568
to
9804ea0
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
9804ea0
to
76820a9
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
76820a9
to
ff259cb
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
ff259cb
to
ab591f0
Compare
ab591f0
to
956083f
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
956083f
to
351420f
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D30652629 |
351420f
to
978da84
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
978da84
to
b90ae37
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
b90ae37
to
ec46f43
Compare
Summary: Pull Request resolved: pytorch#66234 Modified loops in files under fbsource/fbcode/caffe2/ from the format `for(TYPE var=x0;var<x_max;x++)` to the format `for(const auto var: irange(xmax))` This was achieved by running r-barnes's loop upgrader script (D28874212) with some modification to exclude all files under /torch/jit and a number of reversions or unused variable suppression warnings added by hand. Test Plan: Sandcastle Differential Revision: D30652629 fbshipit-source-id: a0532fcb0fee256b1b97b7a2bd5204d7dac24650
ec46f43
to
13a51ce
Compare
This pull request was exported from Phabricator. Differential Revision: D30652629 |
This pull request has been merged in 687c226. |
This pull request has been reverted by 2f099c7. To re-land this change, follow these steps. |
This pull request has been reverted by 2f099c7. To re-land this change, follow these steps. |
Summary: Pull Request resolved: #66234 Modified loops in files under fbsource/fbcode/caffe2/ from the format `for(TYPE var=x0;var<x_max;x++)` to the format `for(const auto var: irange(xmax))` This was achieved by running r-barnes's loop upgrader script (D28874212) with some modification to exclude all files under /torch/jit and a number of reversions or unused variable suppression warnings added by hand. bypass_size_limit allow-large-files Test Plan: Sandcastle Reviewed By: ngimel Differential Revision: D30652629 fbshipit-source-id: 0ae6c4bbbb554bad42e372792a6430e1acf15e3e
Summary:
Modified loops in files under fbsource/fbcode/caffe2/ from the format
for(TYPE var=x0;var<x_max;x++)
to the format
for(const auto var: irange(xmax))
This was achieved by running r-barnes's loop upgrader script (D28874212) with some modification to exclude all files under /torch/jit.
Test Plan:
buck run //caffe2/torch/fb/sparsenn:test
Differential Revision: D30652629
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang