mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
This PR enables `-Winconsistent-missing-destructor-override` and `-Winconsistent-missing-override` and fixes violations. <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 47e904e</samp> This pull request updates the code of various classes and operators in the `caffe2` and `aten` subdirectories to use the `override` specifier instead of the `virtual` keyword for destructors and other virtual functions that override a base class function. This improves the code readability, quality, and consistency with C++ best practices. It also modifies the `./CMakeLists.txt` file to enable warnings for these specifiers, but disable errors. Pull Request resolved: https://github.com/pytorch/pytorch/pull/104032 Approved by: https://github.com/malfet |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| init_qnnpack.cc | ||
| int8_add_op.cc | ||
| int8_add_op.h | ||
| int8_average_pool_op.cc | ||
| int8_average_pool_op.h | ||
| int8_channel_shuffle_op.cc | ||
| int8_channel_shuffle_op.h | ||
| int8_concat_op.cc | ||
| int8_concat_op.h | ||
| int8_conv_op_relu.cc | ||
| int8_conv_op.cc | ||
| int8_conv_op.h | ||
| int8_conv_transpose_op.cc | ||
| int8_conv_transpose_op.h | ||
| int8_dequantize_op.cc | ||
| int8_dequantize_op.h | ||
| int8_fc_op.cc | ||
| int8_fc_op.h | ||
| int8_flatten_op.cc | ||
| int8_flatten_op.h | ||
| int8_given_tensor_fill_op.cc | ||
| int8_given_tensor_fill_op.h | ||
| int8_leaky_relu_op.cc | ||
| int8_leaky_relu_op.h | ||
| int8_max_pool_op.cc | ||
| int8_max_pool_op.h | ||
| int8_quantize_op.cc | ||
| int8_quantize_op.h | ||
| int8_relu_op.cc | ||
| int8_relu_op.h | ||
| int8_reshape_op.cc | ||
| int8_reshape_op.h | ||
| int8_resize_nearest_op.cc | ||
| int8_resize_nearest_op.h | ||
| int8_roi_align_op_test.cc | ||
| int8_roi_align_op.cc | ||
| int8_roi_align_op.h | ||
| int8_sigmoid_op.cc | ||
| int8_sigmoid_op.h | ||
| int8_simd.h | ||
| int8_slice_op.cc | ||
| int8_slice_op.h | ||
| int8_softmax_op.cc | ||
| int8_softmax_op.h | ||
| int8_test_utils.h | ||
| int8_test.cc | ||
| int8_transpose_op.cc | ||
| int8_transpose_op.h | ||
| int8_utils.h | ||