66# @noautodeps
77load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
88
9- runtime.python_library(
10- name = "ethosu_partitioner",
11- srcs = [
12- "ethosu/__init__.py",
13- "ethosu/backend.py",
14- "ethosu/partitioner.py"
15- ],
16- deps = [
17- ":arm_vela",
18- "//executorch/backends/arm/tosa:arm_partitioner",
19- ]
20- )
21- runtime.python_library(
22- name = "vgf_partitioner",
23- srcs = [
24- "vgf/__init__.py",
25- "vgf/backend.py",
26- "vgf/partitioner.py"
27- ],
28- deps = [
29- "//executorch/backends/arm/tosa:arm_partitioner",
30- ]
31- )
329runtime.python_library(
3310 name = "constants",
3411 srcs = [
@@ -51,10 +28,11 @@ runtime.python_library(
5128 "//executorch/exir:lib",
5229 ],
5330)
31+
5432runtime.python_library(
55- name = "arm_backend ",
33+ name = "arm_compile_spec ",
5634 srcs = [
57- "arm_backend .py",
35+ "common/arm_compile_spec .py",
5836 ],
5937 deps = [
6038 "fbsource//third-party/pypi/flatbuffers:flatbuffers",
@@ -64,11 +42,55 @@ runtime.python_library(
6442 "fbsource//third-party/tosa_tools/v0.80/serialization_lib/python/tosa:tosa",
6543 "fbsource//third-party/tosa_tools/v1.00/serialization_lib/python/tosa:tosa",
6644 ":process_node",
45+ "//executorch/exir/backend:compile_spec_schema",
6746 "//executorch/backends/arm/operators:lib",
6847 "//executorch/backends/arm/operators:node_visitor",
6948 "//executorch/backends/arm/_passes:passes",
7049 ],
7150)
51+ runtime.python_library(
52+ name = "ethosu",
53+ srcs = [
54+ "ethosu/__init__.py",
55+ "ethosu/backend.py",
56+ "ethosu/compile_spec.py",
57+ "ethosu/partitioner.py",
58+ ],
59+ deps = [
60+ ":arm_compile_spec",
61+ ":arm_vela",
62+ "//executorch/backends/arm/tosa:specification",
63+ "//executorch/backends/arm/tosa:partitioner",
64+ ],
65+ )
66+
67+ runtime.python_library(
68+ name = "tosa_compile_spec",
69+ srcs = [
70+ "tosa/__init__.py",
71+ "tosa/compile_spec.py",
72+ ],
73+ deps = [
74+ ":arm_compile_spec",
75+ "//executorch/backends/arm/tosa:specification",
76+ ],
77+ )
78+
79+ runtime.python_library(
80+ name = "vgf",
81+ srcs = [
82+ "vgf/__init__.py",
83+ "vgf/backend.py",
84+ "vgf/compile_spec.py",
85+ "vgf/partitioner.py",
86+ ],
87+ deps = [
88+ ":arm_compile_spec",
89+ "//executorch/backends/arm/tosa:specification",
90+ "//executorch/backends/arm/tosa:partitioner",
91+ ],
92+ )
93+
7294runtime.python_library(
7395 name = "process_node",
7496 srcs = ["process_node.py"],
0 commit comments