pytorch
77c2a8a1 - Clang-Tidy: Improve ctors by removing unnecessary copies and initializations (#91538)

Commit
1 year ago
Clang-Tidy: Improve ctors by removing unnecessary copies and initializations (#91538) Apply clang-tidy fixups to prefer member initializer and modernize-pass-by-value. This is a mostly a noop, but it should make a few ctors slighlty more readable and more efficient. Also drops in some missing moves that prevents a lot of unnecessary copying. Pull Request resolved: https://github.com/pytorch/pytorch/pull/91538 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading