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