mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Rename dist_autograd_context and dist_autograd_container. (#29696)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29696 The paths distributed/autograd/context/dist_autograd_context.h and distributed/autograd/context/dist_autograd_container.h were repetitive. Therefore renaming these to distributed/autograd/context/context.h and distributed/autograd/context/container.h ghstack-source-id: 93850266 Test Plan: waitforbuildbot Differential Revision: D18467624 fbshipit-source-id: bbf3905396f553006851af296c880c1bd106ec47
This commit is contained in:
committed by
Facebook Github Bot
parent
06ef4a757d
commit
77bb41c965
@ -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
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/rpc_with_autograd.h>
|
||||
#include <torch/csrc/distributed/autograd/utils.h>
|
||||
#include <torch/torch.h>
|
||||
|
@ -51,8 +51,8 @@ libtorch_sources = [
|
||||
"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",
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/cleanup_autograd_context_req.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
|
||||
namespace torch {
|
||||
namespace distributed {
|
@ -1,7 +1,7 @@
|
||||
#include <functional>
|
||||
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
|
||||
namespace torch {
|
||||
namespace distributed {
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/csrc/autograd/functions/accumulate_grad.h>
|
||||
#include <torch/csrc/autograd/input_buffer.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/engine/dist_engine.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <torch/csrc/autograd/engine.h>
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/functions/basic_ops.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
|
||||
namespace torch {
|
||||
namespace distributed {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/autograd_metadata.h>
|
||||
#include <torch/csrc/distributed/rpc/rpc_agent.h>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <torch/csrc/autograd/python_cpp_function.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/engine/dist_engine.h>
|
||||
#include <torch/csrc/jit/pybind_utils.h>
|
||||
#include <torch/csrc/python_headers.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <torch/csrc/autograd/functions/utils.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/functions/recvrpc_backward.h>
|
||||
#include <torch/csrc/distributed/autograd/functions/sendrpc_backward.h>
|
||||
#include <torch/csrc/distributed/autograd/utils.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/rpc_with_autograd.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <torch/csrc/distributed/rpc/python_functions.h>
|
||||
|
||||
#include <c10/util/C++17.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/utils.h>
|
||||
#include <torch/csrc/distributed/rpc/message.h>
|
||||
#include <torch/csrc/distributed/rpc/python_call.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <torch/csrc/distributed/rpc/request_callback.h>
|
||||
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/utils.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <torch/csrc/distributed/rpc/request_callback_impl.h>
|
||||
|
||||
#include <c10/util/C++17.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/dist_autograd_context.h>
|
||||
#include <torch/csrc/distributed/autograd/context/container.h>
|
||||
#include <torch/csrc/distributed/autograd/context/context.h>
|
||||
#include <torch/csrc/distributed/autograd/engine/dist_engine.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/cleanup_autograd_context_req.h>
|
||||
#include <torch/csrc/distributed/autograd/rpc_messages/cleanup_autograd_context_resp.h>
|
||||
|
Reference in New Issue
Block a user