@@ -2,6 +2,22 @@ load("@fbsource//xplat/executorch/backends/xnnpack/third-party:third_party_libs.
2
2
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
3
3
4
4
def define_common_targets ():
5
+ runtime .cxx_library (
6
+ name = "dynamic_quant_utils" ,
7
+ srcs = [
8
+ "runtime/utils/utils.cpp" ,
9
+ ],
10
+ exported_headers = ["runtime/utils/utils.h" ],
11
+ deps = [
12
+ "//executorch/runtime/core/exec_aten:lib" ,
13
+ "//executorch/runtime/backend:backend_registry" ,
14
+ ],
15
+ visibility = [
16
+ "//executorch/backends/xnnpack/..." ,
17
+ "@EXECUTORCH_CLIENTS" ,
18
+ ],
19
+ )
20
+
5
21
runtime .genrule (
6
22
name = "gen_xnnpack_schema" ,
7
23
srcs = [
@@ -52,8 +68,8 @@ def define_common_targets():
52
68
deps = [
53
69
third_party_dep ("XNNPACK" ),
54
70
":xnnpack_schema" ,
71
+ ":dynamic_quant_utils" , # TODO Use (1) portable for choose_qparams(), (2) xnnpack for quantize_per_tensor(),
55
72
"//executorch/runtime/backend:backend_registry" ,
56
- "//executorch/backends/qnnpack:qnnpack_utils" , # TODO Use (1) portable for choose_qparams(), (2) xnnpack for quantize_per_tensor()
57
73
"//executorch/backends/xnnpack/threadpool:threadpool" ,
58
74
"//executorch/util:memory_utils" ,
59
75
"//executorch/runtime/core/exec_aten/util:tensor_util" ,
0 commit comments