From acd072967a950dc2415a70dfa96e6437237912a9 Mon Sep 17 00:00:00 2001 From: Michael Andreas Dagitses Date: Thu, 16 Jun 2022 03:12:07 -0700 Subject: [PATCH] canonicalize includes of form Pull Request resolved: https://github.com/pytorch/pytorch/pull/78033 This was never intended to be supported. @override-unit-failures (Note: this ignores all push blocking failures!) Differential Revision: [D36567054](https://our.internmc.facebook.com/intern/diff/D36567054/) Approved by: https://github.com/kit1980 --- torch/csrc/distributed/autograd/utils.cpp | 2 +- torch/csrc/jit/codegen/cuda/type_inference.cpp | 2 +- torch/csrc/jit/cuda/cuda.h | 2 +- torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp | 2 +- torch/csrc/jit/python/python_ir.cpp | 2 +- torch/csrc/jit/runtime/register_special_ops.cpp | 6 +++--- torch/csrc/jit/serialization/pickler.cpp | 2 +- torch/csrc/jit/tensorexpr/external_functions.cpp | 2 +- torch/csrc/jit/tensorexpr/llvm_codegen.cpp | 2 +- torch/csrc/lazy/core/shape_inference.cpp | 4 ++-- torch/csrc/utils/throughput_benchmark-inl.h | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/torch/csrc/distributed/autograd/utils.cpp b/torch/csrc/distributed/autograd/utils.cpp index f67b93bd12661..77a685e048f70 100644 --- a/torch/csrc/distributed/autograd/utils.cpp +++ b/torch/csrc/distributed/autograd/utils.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/torch/csrc/jit/codegen/cuda/type_inference.cpp b/torch/csrc/jit/codegen/cuda/type_inference.cpp index 4d83617fc3e82..f7d061595c242 100644 --- a/torch/csrc/jit/codegen/cuda/type_inference.cpp +++ b/torch/csrc/jit/codegen/cuda/type_inference.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/jit/cuda/cuda.h b/torch/csrc/jit/cuda/cuda.h index 49f2210c4c219..a0e0ae9e329d0 100644 --- a/torch/csrc/jit/cuda/cuda.h +++ b/torch/csrc/jit/cuda/cuda.h @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp b/torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp index 62d77b1b8599b..82ee29cb3e057 100644 --- a/torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp +++ b/torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/jit/python/python_ir.cpp b/torch/csrc/jit/python/python_ir.cpp index 91959b6a11877..2fbe31989bfa8 100644 --- a/torch/csrc/jit/python/python_ir.cpp +++ b/torch/csrc/jit/python/python_ir.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/jit/runtime/register_special_ops.cpp b/torch/csrc/jit/runtime/register_special_ops.cpp index 6d61a449cc4e1..939370b196931 100644 --- a/torch/csrc/jit/runtime/register_special_ops.cpp +++ b/torch/csrc/jit/runtime/register_special_ops.cpp @@ -1,8 +1,8 @@ -#include +#include #include +#include #include -#include #include #include #include @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/torch/csrc/jit/serialization/pickler.cpp b/torch/csrc/jit/serialization/pickler.cpp index 650dd638bcaa1..c0fb6a5fc4325 100644 --- a/torch/csrc/jit/serialization/pickler.cpp +++ b/torch/csrc/jit/serialization/pickler.cpp @@ -3,7 +3,7 @@ #ifdef USE_RPC #include #endif -#include +#include #include #include #include diff --git a/torch/csrc/jit/tensorexpr/external_functions.cpp b/torch/csrc/jit/tensorexpr/external_functions.cpp index 93b28cb087c7e..4055e39071efc 100644 --- a/torch/csrc/jit/tensorexpr/external_functions.cpp +++ b/torch/csrc/jit/tensorexpr/external_functions.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -11,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/torch/csrc/jit/tensorexpr/llvm_codegen.cpp b/torch/csrc/jit/tensorexpr/llvm_codegen.cpp index 2284adb8150e3..7db71ed721d6c 100644 --- a/torch/csrc/jit/tensorexpr/llvm_codegen.cpp +++ b/torch/csrc/jit/tensorexpr/llvm_codegen.cpp @@ -2,7 +2,7 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/lazy/core/shape_inference.cpp b/torch/csrc/lazy/core/shape_inference.cpp index 86b6334119877..aac17e22f17f8 100644 --- a/torch/csrc/lazy/core/shape_inference.cpp +++ b/torch/csrc/lazy/core/shape_inference.cpp @@ -51,13 +51,13 @@ #include #include +#include #include #include #include #include +#include #include -#include -#include #include #include #include diff --git a/torch/csrc/utils/throughput_benchmark-inl.h b/torch/csrc/utils/throughput_benchmark-inl.h index 1c7ed8205e67c..74c61b0b1da4c 100644 --- a/torch/csrc/utils/throughput_benchmark-inl.h +++ b/torch/csrc/utils/throughput_benchmark-inl.h @@ -7,7 +7,7 @@ #include #include -#include +#include #include namespace torch {