pytorch/test/cpp
Richard Barnes e0643fa3fc use irange for loops 5 (#66744)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66744

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

fbshipit-source-id: d6ea350cbaa8f452fc78f238160e5374be637a48
2021-10-18 21:59:50 -07:00
..
api use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00
c10d use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00
common
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit Add relative and absolute tolerances for matrix_rank, pinv (#63102) 2021-10-17 22:15:42 -07:00
lazy Add lazy Node base and associated infra (#66601) 2021-10-18 19:09:42 -07:00
lite_interpreter_runtime Back out "Revert D30710710: [Pytorch Edge] Support profiling kineto events from external source" (#66421) 2021-10-12 10:55:29 -07:00
rpc use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00
tensorexpr use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00
__init__.py