pytorch
bceb1db8 - use irange for loops 3 (#66747)

Commit
3 years ago
use irange for loops 3 (#66747) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66747 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 Reviewed By: ngimel Differential Revision: D31705365 fbshipit-source-id: 5c3af2184766b063eed2f4e8feb69f1fedd3503e
Author
Parents
Loading