xref: /aosp_15_r20/external/executorch/exir/backend/canonical_partitioners/TARGETS (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2
3oncall("executorch")
4
5runtime.python_library(
6    name = "canonical_partitioner_lib",
7    srcs = [
8        "duplicate_dequant_node_pass.py",
9        "pattern_op_partitioner.py",
10    ],
11    visibility = [
12        "//executorch/...",
13        "//executorch/exir/backend/...",
14        "//executorch/test/...",
15        "@EXECUTORCH_CLIENTS",
16    ],
17    deps = [
18        "//caffe2:torch",
19        "//executorch/exir/backend:partitioner",
20    ],
21)
22
23runtime.python_library(
24    name = "duplicate_constant_node_pass",
25    srcs = [
26        "duplicate_constant_node_pass.py",
27    ],
28    visibility = [
29        "//executorch/...",
30        "//executorch/exir/backend/...",
31        "//executorch/test/...",
32        "@EXECUTORCH_CLIENTS",
33    ],
34    deps = [
35        "//caffe2:torch",
36        "//executorch/exir/backend:partitioner",
37    ],
38)
39
40runtime.python_library(
41    name = "config_partitioner_lib",
42    srcs = [
43        "config_partitioner.py",
44    ],
45    visibility = [
46        "//executorch/...",
47        "//executorch/exir/backend/...",
48        "//executorch/test/...",
49        "@EXECUTORCH_CLIENTS",
50    ],
51    deps = [
52        "//caffe2:torch",
53        "//executorch/exir/backend:partitioner",
54    ],
55)
56