xref: /aosp_15_r20/external/executorch/codegen/templates/RegisterDispatchKeyCustomOps.cpp (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 #include <torch/library.h>
11 #include <ATen/Tensor.h>
12 
13 ${ops_headers}
14 
15 namespace torch {
16 namespace executor {
17 namespace function {
18 
19 ${dispatch_anonymous_definitions}
20 
21 // All out variants ops
22 ${static_init_dispatch_registrations}
23 
24 namespace ${dispatch_namespace} {
25 
26 ${dispatch_namespaced_definitions}
27 
28 } // namespace ${dispatch_namespace}
29 
30 } // namespace function
31 } // namespace executor
32 } // namespace torch
33