Skip to content

Commit fe84495

Browse files
authored
Arm backend: Update tosa dialect buck file
Differential Revision: D80475527 Pull Request resolved: #13487
1 parent d6b462d commit fe84495

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

backends/arm/tosa/dialect/TARGETS

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
22

3+
python_library(
4+
name = "core",
5+
srcs = [
6+
"lib.py",
7+
"ops_registration.py",
8+
],
9+
deps = [
10+
"//caffe2:torch",
11+
"//executorch/backends/arm:tosa_specification",
12+
"//executorch/exir/dialects:lib",
13+
],
14+
)
15+
16+
python_library(
17+
name = "ops",
18+
srcs = glob(["ops/*.py"]),
19+
deps = [
20+
":core",
21+
"//caffe2:torch",
22+
"//executorch/backends/arm:tosa_specification",
23+
],
24+
)
25+
326
python_library(
427
name = "lib",
5-
srcs = glob(["*.py"]),
28+
srcs = ["__init__.py"],
29+
deps = [
30+
":core",
31+
":ops",
32+
"//caffe2:torch",
33+
"//executorch/backends/arm:tosa_specification",
34+
"//executorch/exir/dialects:lib",
35+
],
636
)

0 commit comments

Comments
 (0)