xref: /aosp_15_r20/external/pytorch/test/edge/templates/RegisterDispatchKeyCustomOps.cpp (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 // clang-format off
2 // Generated code for registering custom operators into the dispatcher.
3 
4 #include <torch/library.h>
5 #include <ATen/Tensor.h>
6 
7 $ops_headers
8 
9 namespace torch {
10 namespace executor {
11 namespace function {
12 
13 
14 ${dispatch_anonymous_definitions}
15 
16 // All out variants ops
17 ${static_init_dispatch_registrations}
18 
19 namespace ${dispatch_namespace}
20 {
21   ${dispatch_namespaced_definitions}
22 
23 } // namespace ${dispatch_namespace}
24 
25 } // namespace function
26 } // namespace executor
27 } // namespace torch
28