mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Remove WindowsTorchApiMacro.h in favor of Export.h (#69585)
Summary: Follow up to https://github.com/pytorch/pytorch/issues/68095 This also changes the files from the ATen folder to include c10's `Export.h` instead since they can't ever be exporting `TORCH_PYTHON_API`. cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang Pull Request resolved: https://github.com/pytorch/pytorch/pull/69585 Reviewed By: mrshenli Differential Revision: D32958594 Pulled By: albanD fbshipit-source-id: 1ec7ef63764573fa2b486928955e3a1172150061
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f87f1d08e8
commit
b2e79ed5ec
@ -524,7 +524,6 @@ cc_library(
|
||||
name = "aten_headers",
|
||||
hdrs = [
|
||||
"torch/csrc/Export.h",
|
||||
"torch/csrc/WindowsTorchApiMacro.h",
|
||||
"torch/csrc/jit/frontend/function_schema_parser.h",
|
||||
] + glob([
|
||||
"aten/src/**/*.h",
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <c10/macros/Export.h>
|
||||
|
||||
namespace at {
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <c10/core/impl/LocalDispatchKeySet.h>
|
||||
#include <c10/macros/Macros.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <c10/macros/Export.h>
|
||||
|
||||
// NOTE [Tracing Mode Switches]
|
||||
//
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <c10/core/MemoryFormat.h>
|
||||
#include <c10/util/ArrayRef.h>
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <c10/macros/Export.h>
|
||||
#include <ATen/Dimname.h>
|
||||
|
||||
namespace c10 {
|
||||
|
@ -1,12 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <c10/macros/Macros.h>
|
||||
#include <c10/macros/Export.h>
|
||||
#include <c10/util/TypeTraits.h>
|
||||
#include <c10/util/TypeList.h>
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
#include <c10/util/order_preserving_flat_hash_map.h>
|
||||
#include <c10/util/Optional.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <ATen/core/TensorBody.h>
|
||||
|
||||
namespace c10 {
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
#include <ATen/core/ivalue_to.h>
|
||||
#include <c10/macros/Macros.h>
|
||||
#include <c10/macros/Export.h>
|
||||
#include <c10/util/TypeTraits.h>
|
||||
#include <c10/util/TypeList.h>
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
#include <c10/util/ArrayRef.h>
|
||||
#include <c10/util/Optional.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <vector>
|
||||
|
||||
namespace at {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <c10/util/C++17.h>
|
||||
#include <c10/util/MaybeOwned.h>
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <c10/macros/Export.h>
|
||||
#include <typeindex>
|
||||
|
||||
namespace torch {
|
||||
|
@ -19,12 +19,12 @@
|
||||
#include <c10/util/MaybeOwned.h>
|
||||
#include <c10/util/Optional.h>
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
#include <c10/macros/Export.h>
|
||||
#include <ATen/core/DeprecatedTypePropertiesRegistry.h>
|
||||
#include <ATen/core/DeprecatedTypeProperties.h>
|
||||
#include <ATen/core/NamedTensor.h>
|
||||
#include <ATen/core/QuantizerBase.h>
|
||||
#include <ATen/core/TensorBase.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
|
||||
namespace c10{
|
||||
template<class T> class List;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <ATen/core/ivalue.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/api/module.h>
|
||||
#include <torch/script.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <c10/util/intrusive_ptr.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/autograd_not_implemented_fallback.h>
|
||||
|
||||
#include <cstdint> // for size_t
|
||||
|
@ -72,7 +72,6 @@ def libtorch_generated_sources(gencode_pattern):
|
||||
jit_core_headers = [
|
||||
"torch/csrc/utils/memory.h",
|
||||
"torch/csrc/Export.h",
|
||||
"torch/csrc/WindowsTorchApiMacro.h",
|
||||
"torch/csrc/jit/frontend/source_range.h",
|
||||
"torch/csrc/jit/serialization/callstack_debug_info_serialization.h",
|
||||
"torch/csrc/jit/serialization/source_range_serialization.h",
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#ifdef USE_CUDA
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <c10/core/Allocator.h>
|
||||
#include <c10/cuda/CUDACachingAllocator.h>
|
||||
#include <c10/cuda/CUDAException.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/python_headers.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <ATen/Device.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <torch/csrc/python_headers.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
const int DTYPE_NAME_LEN = 64;
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
#pragma once
|
||||
#include <torch/csrc/Export.h>
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <torch/data/example.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <cstddef>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace data {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/data/samplers/base.h>
|
||||
|
||||
#include <cstddef>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/data/samplers/base.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/data/samplers/base.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/data/samplers/base.h>
|
||||
#include <torch/data/samplers/custom_batch_request.h>
|
||||
#include <torch/types.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <ATen/core/Reduction.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <c10/util/variant.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#define TORCH_ENUM_DECLARE(name) \
|
||||
namespace torch { \
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/api/module.h>
|
||||
|
||||
#include <string>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <torch/nn/modules/common.h>
|
||||
#include <torch/nn/modules/linear.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <torch/nn/cloneable.h>
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <torch/nn/cloneable.h>
|
||||
#include <torch/nn/functional/padding.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <torch/nn/functional/pixelshuffle.h>
|
||||
#include <torch/nn/options/pixelshuffle.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <torch/nn/functional/pooling.h>
|
||||
#include <torch/nn/modules/common.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <torch/nn/pimpl.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <ostream>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/expanding_array.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/enum.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/expanding_array.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/nn/options/batchnorm.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <c10/util/variant.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <vector>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <c10/util/variant.h>
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/expanding_array.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/expanding_array.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/enum.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/enum.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/enum.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <c10/util/variant.h>
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/expanding_array.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/arg.h>
|
||||
#include <torch/enum.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace nn {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
|
||||
namespace torch {
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <c10/util/flat_hash_map.h>
|
||||
#include <c10/util/Exception.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/arg.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/optim/optimizer.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch {
|
||||
namespace optim {
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <c10/util/irange.h>
|
||||
#include <torch/serialize/archive.h>
|
||||
#include <torch/serialize/tensor.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <utility>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <c10/util/Optional.h>
|
||||
#include <c10/core/Device.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/types.h>
|
||||
#include <torch/csrc/jit/api/module.h>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/api/module.h>
|
||||
|
||||
#include <iosfwd>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <c10/core/InferenceMode.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch { namespace autograd {
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch { namespace autograd {
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <ATen/Tensor.h>
|
||||
#include <ATen/core/ivalue.h>
|
||||
#include <ATen/ThreadLocalState.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/anomaly_mode.h>
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/functions/basic_ops.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <ATen/Tensor.h>
|
||||
|
||||
// A hook that's called on gradients
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/variable.h>
|
||||
#include <torch/csrc/autograd/utils/grad_layout_contract.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <ATen/BatchedTensorImpl.h>
|
||||
|
||||
#include <mutex>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/variable.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/variable.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/cuda/CUDAContext.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/variable.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <ATen/TensorGeometry.h>
|
||||
#include <ATen/core/DeprecatedTypeProperties.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/autograd.h>
|
||||
#include <torch/csrc/autograd/function.h>
|
||||
#include <torch/csrc/autograd/variable.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <ATen/core/grad_mode.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
namespace torch { namespace autograd {
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <forward_list>
|
||||
#include <tuple>
|
||||
#include <ATen/ATen.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/profiler_utils.h>
|
||||
#ifndef _WIN32
|
||||
#include <ctime>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/forward_grad.h>
|
||||
#include <torch/csrc/autograd/saved_variable_hooks.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <torch/csrc/utils/python_stub.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/autograd/edge.h>
|
||||
#include <torch/csrc/autograd/function_hook.h>
|
||||
#include <torch/csrc/autograd/cpp_hook.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <ATen/cuda/ATenCUDAGeneral.h>
|
||||
#include <ATen/cuda/CUDAContext.h>
|
||||
#include <c10/util/Optional.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <cstdint>
|
||||
|
||||
namespace torch {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <c10/util/Optional.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/distributed/rpc/types.h>
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <torch/csrc/jit/ir/ir.h>
|
||||
#include <torch/csrc/jit/runtime/graph_executor.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/utils/memory.h>
|
||||
|
||||
#include <ATen/core/function_schema.h>
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <torch/csrc/jit/runtime/argument_spec.h>
|
||||
#include <torch/csrc/jit/runtime/graph_executor.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/api/include/torch/ordered_dict.h>
|
||||
#include <torch/csrc/jit/api/compilation_unit.h>
|
||||
#include <torch/csrc/utils/memory.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_interface_nodes.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/type.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/kernel.h>
|
||||
|
||||
#include <string>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <torch/csrc/jit/codegen/cuda/root_domain_map.h>
|
||||
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <deque>
|
||||
#include <unordered_map>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <torch/csrc/jit/codegen/cuda/utils.h>
|
||||
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_interface_nodes.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/iter_visitor.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <ATen/core/ivalue.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_base_nodes.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/iter_visitor.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/compute_at_map.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/index_compute.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <torch/csrc/jit/codegen/cuda/instrumentation.h>
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <c10/util/win32-headers.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/ir/ir.h>
|
||||
#include <torch/csrc/jit/runtime/profiling_record.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <c10/core/ScalarType.h>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <c10/util/Optional.h>
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/type.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/utils.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/dispatch.h>
|
||||
|
||||
#include <unordered_map>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/dispatch.h>
|
||||
|
||||
#include <sstream>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/fusion.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_base_nodes.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/fusion.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_base_nodes.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/dispatch.h>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/ir_iostream.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/iter_visitor.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
|
||||
#include <torch/csrc/jit/codegen/cuda/dispatch.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/type.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <torch/csrc/WindowsTorchApiMacro.h>
|
||||
#include <torch/csrc/Export.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/kernel_ir.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/lower_thread_predicate.h>
|
||||
#include <torch/csrc/jit/codegen/cuda/lower_warp_reduce.h>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user