pytorch/caffe2/video
Richard Barnes 2d38d37f5f use irange for loops (#69533)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69533

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

fbshipit-source-id: 8663037a38ade8f81bd5e983a614d197ea11f0d1
2021-12-07 16:53:27 -08:00
..
CMakeLists.txt Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
optical_flow.cc
optical_flow.h
video_decoder.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
video_decoder.h Renaming CAFFE2_API to TORCH_API (#49496) 2020-12-18 10:54:50 -08:00
video_input_op_gpu.cc
video_input_op.cc
video_input_op.h use irange for loops (#69533) 2021-12-07 16:53:27 -08:00
video_io.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
video_io.h Renaming CAFFE2_API to TORCH_API (#49496) 2020-12-18 10:54:50 -08:00