pytorch/caffe2/ideep/utils
Richard Barnes 1433160a36 use irange for loops 6 (#66742)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66742

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: malfet

Differential Revision: D31705366

fbshipit-source-id: be58222426c192406a7f93c21582c3f6f2082401
2021-12-07 16:07:50 -08:00
..
ideep_context.h use irange for loops 6 (#66742) 2021-12-07 16:07:50 -08:00
ideep_operator.h Refactor error msg stack handling, add TORCH_RETHROW (#37101) 2020-05-04 11:56:45 -07:00
ideep_register.cc Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00