File tree Expand file tree Collapse file tree 4 files changed +29
-39
lines changed Expand file tree Collapse file tree 4 files changed +29
-39
lines changed Original file line number Diff line number Diff line change
1
+ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
1
2
load(":targets.bzl", "define_common_targets")
2
3
3
4
oncall("executorch")
4
5
5
6
define_common_targets()
7
+
8
+ runtime.python_library(
9
+ name = "preprocess",
10
+ srcs = ["qnn_preprocess.py"],
11
+ visibility = [
12
+ "//executorch/backends/qualcomm/...",
13
+ "@EXECUTORCH_CLIENTS",
14
+ ],
15
+ deps = [
16
+ "//executorch/backends/qualcomm/passes:passes",
17
+ ],
18
+ )
Original file line number Diff line number Diff line change 1
- load(":targets .bzl", "define_common_targets ")
1
+ load("@fbsource//xplat/executorch/build:runtime_wrapper .bzl", "runtime ")
2
2
3
3
oncall("executorch")
4
4
5
- define_common_targets()
5
+ runtime.python_library(
6
+ name = "passes",
7
+ srcs = glob([
8
+ "*.py",
9
+ ]),
10
+ visibility = [
11
+ "@EXECUTORCH_CLIENTS",
12
+ ],
13
+ deps = [
14
+ "//executorch/backends/transforms:addmm_mm_to_linear",
15
+ "//executorch/exir/backend:backend_details",
16
+ "//executorch/exir/backend:compile_spec_schema",
17
+ ],
18
+ )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"@fbsource//tools/build_defs:default_platform_defs.bzl" ,
3
3
"ANDROID" ,
4
4
)
5
- load ("@fbcode_macros//build_defs:python_library.bzl" , "python_library" )
6
5
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
7
6
8
-
9
7
# Construct the input and output file names. All input and output files rely on scalar_type file.
10
8
SCHEMA_NAME = "schema"
11
9
@@ -56,6 +54,7 @@ def define_common_targets():
56
54
[OUTPUT_SCHEMA_HEADER ],
57
55
OUTPUT_SCHEMA_HEADER ,
58
56
)
57
+
59
58
# Header-only library target with the generate executorch program schema header.
60
59
runtime .cxx_library (
61
60
name = "schema" ,
@@ -77,7 +76,6 @@ def define_common_targets():
77
76
platforms = [ANDROID ],
78
77
)
79
78
80
-
81
79
runtime .cxx_library (
82
80
name = "qnn_executorch_backend" ,
83
81
srcs = [],
@@ -94,15 +92,3 @@ def define_common_targets():
94
92
":schema" ,
95
93
],
96
94
)
97
-
98
- runtime .python_library (
99
- name = "preprocess" ,
100
- srcs = ["qnn_preprocess.py" ],
101
- deps = [
102
- "//executorch/backends/qualcomm/passes:passes" ,
103
- ],
104
- visibility = [
105
- "//executorch/backends/qualcomm/..." ,
106
- "@EXECUTORCH_CLIENTS" ,
107
- ],
108
- )
You can’t perform that action at this time.
0 commit comments