MethodOperators.h 830 B

123456789101112131415161718192021222324
  1. #pragma once
  2. // ${generated_comment}
  3. #ifdef TORCH_ASSERT_NO_OPERATORS
  4. #error This change adds a dependency on native_functions.yaml, \
  5. meaning the file will need to be re-compiled every time an operator \
  6. is changed or added. Consider if your change would be better placed in \
  7. another file, or if a more specific header might achieve the same goal. \
  8. See NOTE: [Tensor vs. TensorBase]
  9. #endif
  10. // Forward declarations of any types needed in the operator signatures.
  11. // We can't directly include these classes because it will cause circular include dependencies.
  12. // This file is included by TensorBody.h, which defines the Tensor class.
  13. #include <ATen/core/ATen_fwd.h>
  14. ${MethodOperators_includes}
  15. namespace at {
  16. namespace _ops {
  17. ${MethodOperators_declarations}
  18. } // namespace _ops
  19. } // namespace at