-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Fix: [ATen] add more missing moves - part 2 #89000
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/89000
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 6c4ffc5: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
292c67e to
2158eb1
Compare
swolchok
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.
mostly good. i like that you caught a bunch of missing moves of SymInt in particular; CC @ezyang on those since they're easy to introduce. changes requested for unnecessary moves pointed out in comments
|
Thanks! Deferring to swolchok here |
|
Hmm, @ezyang saw a failure in Torch Dynamo (that only occurs an hour after CI starts oof). Any way to just run the tests that failed? |
|
you can rerun failed test from GHA UI. Can you link to the failure, I don't see it |
|
in GHA ui you can ask to rerun failed tests |
I meant for new commits that attempt to fix it, or do you believe it's just a flake? |
|
oh sorry, we're just gonna run everything, not your problem lol. I don't know if it's your problem or not, this PR is so big it's hard to tell. Maybe we should split it in two or something. |
|
Ah, it wasn't my fault. Let me revert that change quickly.: b2795d3 |
|
@ezyang Reverted and merged fixes form master, just kick off the merge process again. Should have realized it wasn't my fault due to it being from the trunk jobs. ;) |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: The following mandatory check(s) failed (Rule Dig deeper by viewing the failures on hud Details for Dev Infra teamRaised by workflow job |
|
Okay, @ezyang merge conflicts dealt with and the only failing test so far is the a flake due to an download error during install. |
BTW, it seems I sadly do not have permissions to. :/ |
|
@pytorchbot merge -f "flaky ci only" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This reverts commit 583d216. [ghstack-poisoned]
…0629) Applies various automated fixes that reduces the number of spurious copies in torch, aten, and c10. I also inlined any default dtors that would have made the type trivially destructible. Follow up to #89000 Pull Request resolved: #90629 Approved by: https://github.com/ezyang
Apply clang-tidy check modernize-use-emplace. This is slightly more efficient by using an inplace constructor and is the recommended style in parts of the codebase covered by clang-tidy. This just manually applies the check to rest of the codebase. Pinging @ezyang as this is related to my other PRs he reviewed like #89000 Pull Request resolved: #91077 Approved by: https://github.com/ezyang
Applies some more missing std::move found by static analysis. This should improve performance and reduce unnecessary copies. This PR only targets ATen for now.
And before you ask about the edits, std::move is optimal in a ternary operator as copy ellision cannot happen one. The best thing is probably rewriting it as an if else, but ultimately this should be performant enough.
Followup to #88512 and #88514
cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @VitalyFedyunin @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10