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")
12load(":targets.bzl", "define_common_targets")
23
34oncall("executorch")
45
56define_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 ")
22
33oncall("executorch")
44
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 22 "@fbsource//tools/build_defs:default_platform_defs.bzl" ,
33 "ANDROID" ,
44)
5- load ("@fbcode_macros//build_defs:python_library.bzl" , "python_library" )
65load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
76
8-
97# Construct the input and output file names. All input and output files rely on scalar_type file.
108SCHEMA_NAME = "schema"
119
@@ -56,6 +54,7 @@ def define_common_targets():
5654 [OUTPUT_SCHEMA_HEADER ],
5755 OUTPUT_SCHEMA_HEADER ,
5856 )
57+
5958 # Header-only library target with the generate executorch program schema header.
6059 runtime .cxx_library (
6160 name = "schema" ,
@@ -77,7 +76,6 @@ def define_common_targets():
7776 platforms = [ANDROID ],
7877 )
7978
80-
8179 runtime .cxx_library (
8280 name = "qnn_executorch_backend" ,
8381 srcs = [],
@@ -94,15 +92,3 @@ def define_common_targets():
9492 ":schema" ,
9593 ],
9694 )
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