File tree Expand file tree Collapse file tree 9 files changed +32
-8
lines changed Expand file tree Collapse file tree 9 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
# @noautodeps
2
2
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3
+
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
+ )
3
15
python_library(
4
16
name = "arm_partitioner",
5
17
srcs = [
6
- "ethosu_backend.py",
7
- "ethosu_partitioner.py",
8
18
"tosa_backend.py",
9
19
"tosa_partitioner.py",
10
20
"vgf_backend.py",
Original file line number Diff line number Diff line change
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
+ #
6
+ # pyre-unsafe
7
+
8
+ from .backend import EthosUBackend # noqa: F401
9
+ from .partitioner import EthosUPartitioner # noqa: F401
10
+
11
+ __all__ = [
12
+ "EthosUBackend" ,
13
+ "EthosUPartitioner" ,
14
+ ]
File renamed without changes.
Original file line number Diff line number Diff line change 10
10
from executorch .backends .arm .arm_backend import (
11
11
is_ethosu ,
12
12
) # usort: skip
13
- from executorch .backends .arm .ethosu_backend import EthosUBackend
13
+ from executorch .backends .arm .ethosu import EthosUBackend
14
14
from executorch .backends .arm .tosa_partitioner import TOSAPartitioner
15
15
from executorch .exir .backend .compile_spec_schema import CompileSpec
16
16
from executorch .exir .backend .partitioner import DelegationSpec
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ python_library(
41
41
deps = [
42
42
":common",
43
43
"//executorch/backends/xnnpack/test/tester:tester",
44
- "//executorch/backends/arm:arm_partitioner ",
44
+ "//executorch/backends/arm:ethosu_partitioner ",
45
45
"//executorch/backends/arm/quantizer:lib",
46
46
"//executorch/backends/arm:tosa_mapping",
47
47
"//executorch/devtools/backend_debug:delegation_info",
Original file line number Diff line number Diff line change 39
39
is_tosa ,
40
40
is_vgf ,
41
41
)
42
- from executorch .backends .arm .ethosu_partitioner import EthosUPartitioner
42
+ from executorch .backends .arm .ethosu import EthosUPartitioner
43
43
from executorch .backends .arm .quantizer import (
44
44
EthosUQuantizer ,
45
45
get_symmetric_quantization_config ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ The example below demonstrates the lowering processs of a MobileNet V2 model fro
23
23
``` python
24
24
import torch
25
25
from executorch.backends.arm.arm_backend import ArmCompileSpecBuilder
26
- from executorch.backends.arm.ethosu_partitioner import EthosUPartitioner
26
+ from executorch.backends.arm.ethosu import EthosUPartitioner
27
27
from executorch.backends.arm.quantizer.arm_quantizer import (
28
28
EthosUQuantizer,
29
29
get_symmetric_quantization_config,
Original file line number Diff line number Diff line change 24
24
is_tosa ,
25
25
is_vgf ,
26
26
)
27
- from executorch .backends .arm .ethosu_partitioner import EthosUPartitioner
27
+ from executorch .backends .arm .ethosu import EthosUPartitioner
28
28
from executorch .backends .arm .quantizer import (
29
29
EthosUQuantizer ,
30
30
get_symmetric_quantization_config ,
Original file line number Diff line number Diff line change 138
138
"outputs" : [],
139
139
"source" : [
140
140
" import os\n " ,
141
- " from executorch.backends.arm.ethosu_partitioner import EthosUPartitioner\n " ,
141
+ " from executorch.backends.arm.ethosu import EthosUPartitioner\n " ,
142
142
" from executorch.exir import (\n " ,
143
143
" EdgeCompileConfig,\n " ,
144
144
" ExecutorchBackendConfig,\n " ,
You can’t perform that action at this time.
0 commit comments