pytorch/caffe2/contrib
Richard Barnes 29d759948e use irange for loops 2 (#66746)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66746

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

fbshipit-source-id: 33fd22eb03086d114e2c98e56703e8ec84460268
2021-12-10 04:26:23 -08:00
..
aten use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
docker-ubuntu-14.04 Upgrade to ubuntu:trusty-20190515 (#63468) 2021-10-07 16:28:08 -07:00
fakelowp use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
gloo use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
ideep seperate mkl, mklml, and mkldnn (#12170) 2018-10-29 10:52:55 -07:00
nccl [ROCm] enable stream priorities (#47136) 2020-11-02 11:25:44 -08:00
nnpack Remove __future__ imports for legacy Python2 supports (#45033) 2020-09-23 17:57:02 -07:00
opencl use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
playground Remove __future__ imports for legacy Python2 supports (#45033) 2020-09-23 17:57:02 -07:00
prof Remove __future__ imports for legacy Python2 supports (#45033) 2020-09-23 17:57:02 -07:00
pytorch [Caffe2] ScriptModuleOp support pass_inputs_as_tensor_list (#56813) 2021-04-23 18:49:57 -07:00
script remediation of S205607 2020-07-17 17:19:47 -07:00
shm_mutex LLVM-12 fix for shm_mutex (#65781) 2021-09-28 22:51:38 -07:00
tensorboard Remove unused six code for Python 2/3 compatibility (#48077) 2020-12-22 18:07:08 -08:00
tensorrt [caffe2] Check for number of created subnets and optionally throw an error (#57366) 2021-07-08 14:29:03 -07:00
warpctc Remove __future__ imports for legacy Python2 supports (#45033) 2020-09-23 17:57:02 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00
CMakeLists.txt [ROCm] utilize PUBLIC vs PRIVATE linking to avoid incorrect dependencies (#54727) 2021-03-30 19:22:56 -07:00