xref: /aosp_15_r20/external/executorch/backends/cadence/aot/quantizer/TARGETS (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2
3oncall("odai_jarvis")
4
5python_library(
6    name = "utils",
7    srcs = [
8        "utils.py",
9    ],
10    deps = [
11        "//caffe2:torch",
12    ],
13)
14
15python_library(
16    name = "patterns",
17    srcs = [
18        "patterns.py",
19    ],
20    typing = True,
21    deps = [
22        ":utils",
23        "//caffe2:torch",
24    ],
25)
26
27python_library(
28    name = "quantizer",
29    srcs = [
30        "quantizer.py",
31    ],
32    typing = True,
33    deps = [
34        ":patterns",
35        ":utils",
36        "//caffe2:torch",
37    ],
38)
39
40python_library(
41    name = "fusion_pass",
42    srcs = [
43        "fusion_pass.py",
44    ],
45    deps = [
46        ":patterns",
47        ":utils",
48        "//caffe2:torch",
49        "//executorch/exir:pass_base",
50    ],
51)
52