pytorch/binaries
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
..
bench_gen Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
aot_model_compiler.cc Add option to get input dtype from user (#68751) 2021-11-29 21:39:49 -08:00
at_launch_benchmark.cc Move intraop_launch_future from Parallel.h (#64166) 2021-10-08 09:07:35 -07:00
benchmark_args.h
benchmark_helper.cc [easy]Unbreak caffe2benchmarking build (#63655) 2021-08-20 12:57:27 -07:00
benchmark_helper.h use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
caffe2_benchmark.cc
CMakeLists.txt [android][fbjni] Update fbjni to 0.2.2 (#68400) 2021-11-17 16:54:22 -08:00
compare_models_torch.cc Small improvements to compare_models_torch binary (#65171) 2021-09-17 08:32:45 -07:00
convert_and_benchmark.cc
convert_caffe_image_db.cc
convert_db.cc
convert_encoded_to_raw_leveldb.cc
convert_image_to_tensor.cc
core_overhead_benchmark.cc
core_overhead_benchmark_gpu.cc
db_throughput.cc
dump_operator_names.cc
inspect_gpu.cc
intra_inter_benchmark.cc
lite_interpreter_model_load.cc
make_cifar_db.cc
make_image_db.cc [caffe2] update make_mnist_db and make_image_db to move strings into DB::Put() (#60919) 2021-06-29 11:52:43 -07:00
make_mnist_db.cc [caffe2] update make_mnist_db and make_image_db to move strings into DB::Put() (#60919) 2021-06-29 11:52:43 -07:00
optimize_for_mobile.cc
parallel_info.cc
predictor_verifier.cc
print_core_object_sizes_gpu.cc
print_registered_core_operators.cc
record_function_benchmark.cc
run_plan.cc
run_plan_mpi.cc
speed_benchmark.cc
speed_benchmark_torch.cc [PyTorch] Adopt IValue::toTupleRef() where obvious (#65505) 2021-11-02 10:22:18 -07:00
split_db.cc
tsv_2_proto.cc
tutorial_blob.cc
zmq_feeder.cc