Skip to content

Commit e39f0d4

Browse files
committed
Arm backend: Fix buck2 files after moving TOSA partitioner
Signed-off-by: Zingo Andersen <[email protected]> Change-Id: Ia5eafe71055569f97f9f9f518bc958b9c4145b57
1 parent cfd9b68 commit e39f0d4

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

backends/arm/TARGETS

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1+
# Copyright 2025 Arm Limited and/or its affiliates.
2+
#
3+
# This source code is licensed under the BSD-style license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
#
16
# @noautodeps
27
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
38

4-
python_library(
5-
name = "ethosu_partitioner",
6-
srcs = [
7-
"ethosu/__init__.py",
8-
"ethosu/backend.py",
9-
"ethosu/partitioner.py"
10-
],
11-
deps = [
12-
":arm_partitioner",
13-
]
14-
)
159
python_library(
1610
name = "constants",
1711
srcs = [
@@ -35,20 +29,32 @@ python_library(
3529
],
3630
)
3731
python_library(
38-
name = "arm_partitioner",
32+
name = "tosa_partitioner",
3933
srcs = [
40-
"tosa_backend.py",
41-
"tosa_partitioner.py",
34+
"tosa/__init__.py",
35+
"tosa/backend.py",
36+
"tosa/partitioner.py",
4237
"vgf_backend.py",
43-
"vgf_partitioner.py",
38+
"vgf_partitioner.py"
4439
],
4540
deps = [
4641
":arm_backend",
4742
":constants",
4843
"//executorch/backends/arm/operator_support:operator_support",
4944
"//executorch/backends/arm/_passes:passes",
5045
"//executorch/exir:lib",
46+
]
47+
)
48+
python_library(
49+
name = "ethosu_partitioner",
50+
srcs = [
51+
"ethosu/__init__.py",
52+
"ethosu/backend.py",
53+
"ethosu/partitioner.py"
5154
],
55+
deps = [
56+
":tosa_partitioner",
57+
]
5258
)
5359
python_library(
5460
name = "arm_backend",

backends/arm/test/TARGETS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2025 Arm Limited and/or its affiliates.
2+
#
3+
# This source code is licensed under the BSD-style license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
16
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
27
load(":targets.bzl", "define_arm_tests")
38

@@ -41,6 +46,7 @@ python_library(
4146
deps = [
4247
":common",
4348
"//executorch/backends/xnnpack/test/tester:tester",
49+
"//executorch/backends/arm:tosa_partitioner",
4450
"//executorch/backends/arm:ethosu_partitioner",
4551
"//executorch/backends/arm/quantizer:lib",
4652
"//executorch/backends/arm:tosa_mapping",

0 commit comments

Comments
 (0)