mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
This applies some more clang-tidy fixups. Particularly, this applies the modernize loops and modernize-use-transparent-functors checks. Transparent functors are less error prone since you don't have to worry about accidentally specifying the wrong type and are newly available as of C++17. Modern foreach loops tend be more readable and can be more efficient to iterate over since the loop condition is removed. Pull Request resolved: https://github.com/pytorch/pytorch/pull/91449 Approved by: https://github.com/ezyang