diff --git a/caffe2/CMakeLists.txt b/caffe2/CMakeLists.txt index 680faf883f77..d071725ca5b1 100644 --- a/caffe2/CMakeLists.txt +++ b/caffe2/CMakeLists.txt @@ -491,8 +491,8 @@ if (NOT INTERN_BUILD_MOBILE OR NOT BUILD_CAFFE2_MOBILE) ) if (USE_DISTRIBUTED) list(APPEND TORCH_SRCS - ${TORCH_SRC_DIR}/csrc/distributed/autograd/context/dist_autograd_container.cpp - ${TORCH_SRC_DIR}/csrc/distributed/autograd/context/dist_autograd_context.cpp + ${TORCH_SRC_DIR}/csrc/distributed/autograd/context/container.cpp + ${TORCH_SRC_DIR}/csrc/distributed/autograd/context/context.cpp ${TORCH_SRC_DIR}/csrc/distributed/autograd/engine/dist_engine.cpp ${TORCH_SRC_DIR}/csrc/distributed/autograd/functions/recvrpc_backward.cpp ${TORCH_SRC_DIR}/csrc/distributed/autograd/functions/sendrpc_backward.cpp diff --git a/test/cpp/dist_autograd/test_dist_autograd.cpp b/test/cpp/dist_autograd/test_dist_autograd.cpp index 0301e9bd96c5..b8d79f2a39b4 100644 --- a/test/cpp/dist_autograd/test_dist_autograd.cpp +++ b/test/cpp/dist_autograd/test_dist_autograd.cpp @@ -1,8 +1,8 @@ #include #include -#include -#include +#include +#include #include #include #include diff --git a/tools/build_variables.py b/tools/build_variables.py index 2e4cd6c11441..eed52c3f79b1 100644 --- a/tools/build_variables.py +++ b/tools/build_variables.py @@ -51,8 +51,8 @@ "torch/csrc/autograd/saved_variable.cpp", "torch/csrc/autograd/variable.cpp", "torch/csrc/distributed/autograd/utils.cpp", - "torch/csrc/distributed/autograd/context/dist_autograd_container.cpp", - "torch/csrc/distributed/autograd/context/dist_autograd_context.cpp", + "torch/csrc/distributed/autograd/context/container.cpp", + "torch/csrc/distributed/autograd/context/context.cpp", "torch/csrc/distributed/autograd/engine/dist_engine.cpp", "torch/csrc/distributed/autograd/functions/recvrpc_backward.cpp", "torch/csrc/distributed/autograd/functions/sendrpc_backward.cpp", diff --git a/torch/csrc/distributed/autograd/context/dist_autograd_container.cpp b/torch/csrc/distributed/autograd/context/container.cpp similarity index 98% rename from torch/csrc/distributed/autograd/context/dist_autograd_container.cpp rename to torch/csrc/distributed/autograd/context/container.cpp index 572e8286577e..75a12d34ddce 100644 --- a/torch/csrc/distributed/autograd/context/dist_autograd_container.cpp +++ b/torch/csrc/distributed/autograd/context/container.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include diff --git a/torch/csrc/distributed/autograd/context/dist_autograd_container.h b/torch/csrc/distributed/autograd/context/container.h similarity index 98% rename from torch/csrc/distributed/autograd/context/dist_autograd_container.h rename to torch/csrc/distributed/autograd/context/container.h index 2c316f2db54e..518b7cec6a03 100644 --- a/torch/csrc/distributed/autograd/context/dist_autograd_container.h +++ b/torch/csrc/distributed/autograd/context/container.h @@ -3,7 +3,7 @@ #include #include -#include +#include namespace torch { namespace distributed { diff --git a/torch/csrc/distributed/autograd/context/dist_autograd_context.cpp b/torch/csrc/distributed/autograd/context/context.cpp similarity index 98% rename from torch/csrc/distributed/autograd/context/dist_autograd_context.cpp rename to torch/csrc/distributed/autograd/context/context.cpp index 49bb1c67d297..612944c22bb8 100644 --- a/torch/csrc/distributed/autograd/context/dist_autograd_context.cpp +++ b/torch/csrc/distributed/autograd/context/context.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include namespace torch { diff --git a/torch/csrc/distributed/autograd/context/dist_autograd_context.h b/torch/csrc/distributed/autograd/context/context.h similarity index 100% rename from torch/csrc/distributed/autograd/context/dist_autograd_context.h rename to torch/csrc/distributed/autograd/context/context.h diff --git a/torch/csrc/distributed/autograd/engine/dist_engine.cpp b/torch/csrc/distributed/autograd/engine/dist_engine.cpp index c7dc4119a6d8..77f931ebbe77 100644 --- a/torch/csrc/distributed/autograd/engine/dist_engine.cpp +++ b/torch/csrc/distributed/autograd/engine/dist_engine.cpp @@ -2,7 +2,7 @@ #include #include -#include +#include #include namespace torch { diff --git a/torch/csrc/distributed/autograd/engine/dist_engine.h b/torch/csrc/distributed/autograd/engine/dist_engine.h index ce06c18c5cef..87a4db8e59e7 100644 --- a/torch/csrc/distributed/autograd/engine/dist_engine.h +++ b/torch/csrc/distributed/autograd/engine/dist_engine.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace torch { namespace distributed { diff --git a/torch/csrc/distributed/autograd/functions/recvrpc_backward.h b/torch/csrc/distributed/autograd/functions/recvrpc_backward.h index d5245d0d6f71..a0d360e2e459 100644 --- a/torch/csrc/distributed/autograd/functions/recvrpc_backward.h +++ b/torch/csrc/distributed/autograd/functions/recvrpc_backward.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include #include #include diff --git a/torch/csrc/distributed/autograd/init.cpp b/torch/csrc/distributed/autograd/init.cpp index afb2549b3978..795762df23e8 100644 --- a/torch/csrc/distributed/autograd/init.cpp +++ b/torch/csrc/distributed/autograd/init.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/distributed/autograd/utils.cpp b/torch/csrc/distributed/autograd/utils.cpp index da85418aa0e0..44ddc01017fd 100644 --- a/torch/csrc/distributed/autograd/utils.cpp +++ b/torch/csrc/distributed/autograd/utils.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include diff --git a/torch/csrc/distributed/autograd/utils.h b/torch/csrc/distributed/autograd/utils.h index cc147c059f1d..de144162c696 100644 --- a/torch/csrc/distributed/autograd/utils.h +++ b/torch/csrc/distributed/autograd/utils.h @@ -1,6 +1,6 @@ #pragma once -#include +#include #include namespace torch { diff --git a/torch/csrc/distributed/rpc/python_functions.cpp b/torch/csrc/distributed/rpc/python_functions.cpp index 23e121693231..8c57fa4cdf97 100644 --- a/torch/csrc/distributed/rpc/python_functions.cpp +++ b/torch/csrc/distributed/rpc/python_functions.cpp @@ -1,7 +1,7 @@ #include #include -#include +#include #include #include #include diff --git a/torch/csrc/distributed/rpc/request_callback.cpp b/torch/csrc/distributed/rpc/request_callback.cpp index 971f9f985c74..25ece40ce3ba 100644 --- a/torch/csrc/distributed/rpc/request_callback.cpp +++ b/torch/csrc/distributed/rpc/request_callback.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include namespace torch { diff --git a/torch/csrc/distributed/rpc/request_callback_impl.cpp b/torch/csrc/distributed/rpc/request_callback_impl.cpp index 62a34f1f829a..e9d1e564347e 100644 --- a/torch/csrc/distributed/rpc/request_callback_impl.cpp +++ b/torch/csrc/distributed/rpc/request_callback_impl.cpp @@ -1,8 +1,8 @@ #include #include -#include -#include +#include +#include #include #include #include