6
6
# @noautodeps
7
7
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
8
8
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
- )
32
9
runtime.python_library(
33
10
name = "constants",
34
11
srcs = [
@@ -51,10 +28,11 @@ runtime.python_library(
51
28
"//executorch/exir:lib",
52
29
],
53
30
)
31
+
54
32
runtime.python_library(
55
- name = "arm_backend ",
33
+ name = "arm_compile_spec ",
56
34
srcs = [
57
- "arm_backend .py",
35
+ "common/arm_compile_spec .py",
58
36
],
59
37
deps = [
60
38
"fbsource//third-party/pypi/flatbuffers:flatbuffers",
@@ -64,11 +42,43 @@ runtime.python_library(
64
42
"fbsource//third-party/tosa_tools/v0.80/serialization_lib/python/tosa:tosa",
65
43
"fbsource//third-party/tosa_tools/v1.00/serialization_lib/python/tosa:tosa",
66
44
":process_node",
45
+ "//executorch/exir/backend:compile_spec_schema",
67
46
"//executorch/backends/arm/operators:lib",
68
47
"//executorch/backends/arm/operators:node_visitor",
69
48
"//executorch/backends/arm/_passes:passes",
70
49
],
71
50
)
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 = "vgf",
69
+ srcs = [
70
+ "vgf/__init__.py",
71
+ "vgf/backend.py",
72
+ "vgf/compile_spec.py",
73
+ "vgf/partitioner.py",
74
+ ],
75
+ deps = [
76
+ ":arm_compile_spec",
77
+ "//executorch/backends/arm/tosa:specification",
78
+ "//executorch/backends/arm/tosa:partitioner",
79
+ ],
80
+ )
81
+
72
82
runtime.python_library(
73
83
name = "process_node",
74
84
srcs = ["process_node.py"],
0 commit comments