pytorch/test/cpp
Richard Barnes 17e5200441 use irange for loops 8 (#66743)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66743

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

fbshipit-source-id: c9ea2fbc0f9cd29e97a52dcb203addc5f2abb09b
2021-12-02 10:21:29 -08:00
..
api use irange for loops 8 (#66743) 2021-12-02 10:21:29 -08:00
c10d Enable desync root cause analysis for NCCL (#68310) 2021-11-17 20:29:03 -08:00
common
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit Revert D32010095: [pytorch][PR] Add ability for a mobile::Module to save as flatbuffer 2021-12-02 06:41:40 -08:00
lazy [LTC] Upstream helpers for c10::Device <=> BackendDevice (#69064) 2021-12-01 12:15:32 -08: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
monitor torch.monitor - Initial C++ Stats (#68074) 2021-11-18 21:46:23 -08:00
rpc Remove ProcessGroup from TensorPipeAgent initialization (#68128) 2021-11-11 12:28:55 -08:00
tensorexpr [TensorExpr] Allow for 'keepdim' argument in aten::mean in NNC's external call. (#68756) 2021-11-30 00:06:34 -08:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00