xref: /aosp_15_r20/external/executorch/codegen/templates/aten_interned_strings.h (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 // clang-format off
10 #pragma once
11 
12 // ${generated_comment}
13 
14 #if defined(TORCH_ASSERT_NO_OPERATORS) || \
15     defined(TORCH_ASSERT_ONLY_METHOD_OPERATORS)
16 #error This change adds a dependency on native_functions.yaml,          \
17   meaning the file will need to be re-compiled every time an operator   \
18   is changed or added. Consider if including <ATen/core/symbol.h> for   \
19   the c10::Symbol class would be sufficient, or if your change would be \
20   better placed in another file.
21 #endif
22 
23 // ATen symbols correspond exactly to operators defined in ATen. Every
24 // symbol here corresponds exactly to an ATen operation defined in
25 // native_functions.yaml; attributes are in one-to-one correspondence
26 // with their ATen name.
27 
28 #define FORALL_ATEN_BASE_SYMBOLS(_) \
29   ${aten_symbols}
30 
31 #define FORALL_ATTR_BASE_SYMBOLS(_) \
32   ${attr_symbols}
33