pytorch/caffe2/experiments/operators
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
..
fully_connected_op_decomposition_gpu.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
fully_connected_op_decomposition.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
fully_connected_op_decomposition.h [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
fully_connected_op_prune.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
fully_connected_op_prune.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
fully_connected_op_sparse.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
fully_connected_op_sparse.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
funhash_op.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
funhash_op.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
sparse_funhash_op.cc
sparse_funhash_op.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
sparse_matrix_reshape_op.cc
sparse_matrix_reshape_op.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
tt_contraction_op_gpu.cc
tt_contraction_op.cc
tt_contraction_op.h [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
tt_pad_op.cc
tt_pad_op.h