pytorch/test/cpp/rpc
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
..
CMakeLists.txt Remove process_group_agent and faulty_process_group_agent files (#62985) 2021-08-10 15:57:39 -07:00
e2e_test_base.cpp Enroll TensorPipe agent in C++-only E2E test (#42680) 2020-08-13 07:07:30 -07:00
e2e_test_base.h [1/n] [c10d] Introduce a new TCPStore constructor (#58328) 2021-06-05 07:50:02 -07:00
test_e2e_tensorpipe.cpp Fix race condition in TP agent (#58753) 2021-06-04 06:53:42 -07:00
test_tensorpipe_serialization.cpp use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00
test_wire_serialization.cpp use irange for loops 5 (#66744) 2021-10-18 21:59:50 -07:00