ATen.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #if !defined(_MSC_VER) && __cplusplus < 201703L
  4. #error C++17 or later compatible compiler is required to use ATen.
  5. #endif
  6. #include <ATen/Context.h>
  7. #include <ATen/Device.h>
  8. #include <ATen/DeviceGuard.h>
  9. #include <ATen/DimVector.h>
  10. #include <ATen/Dispatch.h>
  11. #include <ATen/Formatting.h>
  12. #include <ATen/Functions.h>
  13. #include <ATen/NamedTensor.h>
  14. #include <ATen/ScalarOps.h>
  15. #include <ATen/Tensor.h>
  16. #include <ATen/TensorGeometry.h>
  17. #include <ATen/TensorIndexing.h>
  18. #include <ATen/TensorOperators.h>
  19. #include <ATen/Version.h>
  20. #include <ATen/core/ATenGeneral.h>
  21. #include <ATen/core/Generator.h>
  22. #include <ATen/core/Reduction.h>
  23. #include <ATen/core/Scalar.h>
  24. #include <ATen/core/UnsafeFromTH.h>
  25. #include <ATen/core/ivalue.h>
  26. #include <ATen/core/jit_type.h>
  27. #include <c10/core/Allocator.h>
  28. #include <c10/core/InferenceMode.h>
  29. #include <c10/core/Layout.h>
  30. #include <c10/core/Storage.h>
  31. #include <c10/core/TensorOptions.h>
  32. #include <c10/util/Exception.h>
  33. // TODO: try to remove this
  34. // There is some back story, see https://github.com/pytorch/pytorch/issues/48684
  35. #include <ATen/NativeFunctions.h>
  36. #else
  37. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  38. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)