Skip to content

Commit

Permalink
Revert "[Easy][BE]: Enable clang-tidy check for duplicate includes (p…
Browse files Browse the repository at this point in the history
…ytorch#116193)"

This reverts commit 71cb138.

Reverted pytorch#116193 on behalf of https://github.com/jeanschmidt due to Breaking internal test (bolt_nn_espresso_operator_test_eureka-scheduler) and job (build-rdk-diff-windows-debug-cuda11) @malfet and @albanD, please help the author get this PR merged by providing more information ([comment](pytorch#116193 (comment)))
  • Loading branch information
pytorchmergebot committed Dec 21, 2023
1 parent 348cb2f commit f71d302
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ modernize-*,
performance-*,
readability-container-size-empty,
readability-delete-null-pointer,
readability-duplicate-include
readability-string-compare,
'
HeaderFilterRegex: '^(aten/|c10/|torch/).*$'
Expand Down
1 change: 1 addition & 0 deletions aten/src/ATen/core/interned_strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <string>
#include <c10/util/Exception.h>
#include <ATen/core/interned_strings_class.h>
#include <c10/util/Exception.h>

namespace c10 {

Expand Down
2 changes: 2 additions & 0 deletions torch/csrc/Dtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <torch/csrc/utils/tensor_types.h>
#include <cstring>

#include <torch/csrc/Exceptions.h>

PyObject* THPDtype_New(at::ScalarType scalar_type, const std::string& name) {
HANDLE_TH_ERRORS
AT_ASSERT(name.length() < DTYPE_NAME_LEN);
Expand Down
1 change: 1 addition & 0 deletions torch/csrc/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
#include <torch/csrc/utils/verbose.h>

#include <ATen/native/transformers/sdp_utils_cpp.h>
#include <c10/util/Logging.h>
#include <torch/csrc/profiler/combined_traceback.h>
#include <sstream>
#ifdef USE_CUDA
Expand Down
1 change: 1 addition & 0 deletions torch/csrc/Size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <torch/csrc/autograd/python_variable.h>
#include <torch/csrc/jit/frontend/tracer.h>
#include <torch/csrc/utils/pybind.h>

struct THPSize {
PyTupleObject tuple;
Expand Down
1 change: 1 addition & 0 deletions torch/csrc/utils/python_dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <c10/util/flat_hash_map.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <torch/csrc/jit/python/pybind_utils.h>
#include <torch/csrc/utils/pybind.h>
#include <torch/csrc/utils/python_raii.h>

Expand Down

0 comments on commit f71d302

Please sign in to comment.