mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/70248 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: D32813863 fbshipit-source-id: 527244b4a2b220fdfe7f17dee3599603f492a2ca |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adagrad.cc | ||
| adagrad.h | ||
| adagrad_avx2.cc | ||
| CMakeLists.txt | ||
| common.h | ||
| common_avx.cc | ||
| common_avx2.cc | ||
| common_avx512.cc | ||
| cvtsh_ss_bugfix.h | ||
| embedding_lookup.cc | ||
| embedding_lookup.h | ||
| embedding_lookup_avx2.cc | ||
| embedding_lookup_fused_8bit_rowwise_avx2.cc | ||
| embedding_lookup_fused_8bit_rowwise_idx_avx2.cc | ||
| embedding_lookup_idx.cc | ||
| embedding_lookup_idx.h | ||
| embedding_lookup_idx_avx2.cc | ||
| fused_8bit_rowwise_embedding_lookup.cc | ||
| fused_8bit_rowwise_embedding_lookup.h | ||
| fused_8bit_rowwise_embedding_lookup_idx.cc | ||
| fused_8bit_rowwise_embedding_lookup_idx.h | ||
| fused_nbit_rowwise_conversion.cc | ||
| fused_nbit_rowwise_conversion.h | ||
| hp_emblookup_codegen.py | ||
| lstm_unit_cpu-impl.h | ||
| lstm_unit_cpu.h | ||
| lstm_unit_cpu_avx2.cc | ||
| lstm_unit_cpu_common.cc | ||
| lstm_unit_cpu_common.h | ||
| math.h | ||
| math_cpu_avx2.cc | ||
| math_cpu_base.cc | ||
| typed_axpy.cc | ||
| typed_axpy.h | ||
| typed_axpy_avx.cc | ||
| typed_axpy_avx2.cc | ||