pytorch
583d216c - Fix: [ATen] add more missing moves - part 2 (#89000)

Commit
3 years ago
Fix: [ATen] add more missing moves - part 2 (#89000) 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 Pull Request resolved: https://github.com/pytorch/pytorch/pull/89000 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading