forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTARGETS
More file actions
120 lines (115 loc) · 3 KB
/
TARGETS
File metadata and controls
120 lines (115 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Copyright 2025 Arm Limited and/or its affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# @noautodeps
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
runtime.python_library(
name = "constants",
srcs = [
"constants.py",
],
deps = [
"//executorch/exir/dialects:lib",
],
)
runtime.python_library(
name = "common",
srcs = glob(["common/*.py"]),
deps = [
"fbsource//third-party/tosa_tools:serializer",
"//caffe2:torch",
"//executorch/exir:lib",
],
)
runtime.python_library(
name = "arm_compile_spec",
srcs = [
"common/arm_compile_spec.py",
],
deps = [
"fbsource//third-party/pypi/flatbuffers:flatbuffers",
"fbsource//third-party/pypi/ml-dtypes:ml-dtypes",
"fbsource//third-party/tosa_tools:serializer",
"fbsource//third-party/tosa_tools:tosa",
":process_node",
"//executorch/exir/backend:compile_spec_schema",
"//executorch/backends/arm/operators:lib",
"//executorch/backends/arm/operators:node_visitor",
"//executorch/backends/arm/_passes:passes",
],
)
runtime.python_library(
name = "ethosu",
srcs = [
"ethosu/__init__.py",
"ethosu/backend.py",
"ethosu/compile_spec.py",
"ethosu/partitioner.py",
],
deps = [
":arm_compile_spec",
":arm_vela",
"//executorch/backends/arm/tosa:specification",
"//executorch/backends/arm/tosa:partitioner",
],
)
runtime.python_library(
name = "vgf",
srcs = [
"vgf/__init__.py",
"vgf/backend.py",
"vgf/compile_spec.py",
"vgf/model_converter.py",
"vgf/partitioner.py",
],
deps = [
":arm_compile_spec",
"//executorch/backends/arm/tosa:specification",
"//executorch/backends/arm/tosa:partitioner",
],
)
runtime.python_library(
name = "process_node",
srcs = ["process_node.py"],
deps = [
"fbsource//third-party/tosa_tools:tosa",
"//executorch/backends/arm/operators:node_visitor",
"//executorch/backends/arm/tosa:mapping",
"//executorch/backends/arm/tosa:utils",
"//executorch/backends/arm/tosa/dialect:core",
"//executorch/exir:lib",
],
)
runtime.python_library(
name = "arm_vela",
srcs = [
"arm_vela.py",
],
deps = [
"fbsource//third-party/pypi/ethos-u-vela:ethos-u-vela",
],
)
runtime.python_library(
name = "arm_model_evaluator",
srcs = [
"util/arm_model_evaluator.py",
],
deps = [
"//caffe2:torch",
]
)
runtime.python_library(
name = "_factory",
srcs = [
"util/_factory.py"
],
deps = [
":ethosu",
":vgf",
":arm_compile_spec",
"//executorch/backends/arm/quantizer:lib",
"//executorch/exir/backend:operator_support",
"//executorch/exir/backend:compile_spec_schema",
]
)