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 11# @noautodeps
22load("@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+ )
315python_library(
416 name = "arm_partitioner",
517 srcs = [
6- "ethosu_backend.py",
7- "ethosu_partitioner.py",
818 "tosa_backend.py",
919 "tosa_partitioner.py",
1020 "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 1010from executorch .backends .arm .arm_backend import (
1111 is_ethosu ,
1212) # usort: skip
13- from executorch .backends .arm .ethosu_backend import EthosUBackend
13+ from executorch .backends .arm .ethosu import EthosUBackend
1414from executorch .backends .arm .tosa_partitioner import TOSAPartitioner
1515from executorch .exir .backend .compile_spec_schema import CompileSpec
1616from executorch .exir .backend .partitioner import DelegationSpec
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ python_library(
4141 deps = [
4242 ":common",
4343 "//executorch/backends/xnnpack/test/tester:tester",
44- "//executorch/backends/arm:arm_partitioner ",
44+ "//executorch/backends/arm:ethosu_partitioner ",
4545 "//executorch/backends/arm/quantizer:lib",
4646 "//executorch/backends/arm:tosa_mapping",
4747 "//executorch/devtools/backend_debug:delegation_info",
Original file line number Diff line number Diff line change 3939 is_tosa ,
4040 is_vgf ,
4141)
42- from executorch .backends .arm .ethosu_partitioner import EthosUPartitioner
42+ from executorch .backends .arm .ethosu import EthosUPartitioner
4343from executorch .backends .arm .quantizer import (
4444 EthosUQuantizer ,
4545 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
2323``` python
2424import torch
2525from executorch.backends.arm.arm_backend import ArmCompileSpecBuilder
26- from executorch.backends.arm.ethosu_partitioner import EthosUPartitioner
26+ from executorch.backends.arm.ethosu import EthosUPartitioner
2727from executorch.backends.arm.quantizer.arm_quantizer import (
2828 EthosUQuantizer,
2929 get_symmetric_quantization_config,
Original file line number Diff line number Diff line change 2424 is_tosa ,
2525 is_vgf ,
2626)
27- from executorch .backends .arm .ethosu_partitioner import EthosUPartitioner
27+ from executorch .backends .arm .ethosu import EthosUPartitioner
2828from executorch .backends .arm .quantizer import (
2929 EthosUQuantizer ,
3030 get_symmetric_quantization_config ,
Original file line number Diff line number Diff line change 138138 "outputs" : [],
139139 "source" : [
140140 " import os\n " ,
141- " from executorch.backends.arm.ethosu_partitioner import EthosUPartitioner\n " ,
141+ " from executorch.backends.arm.ethosu import EthosUPartitioner\n " ,
142142 " from executorch.exir import (\n " ,
143143 " EdgeCompileConfig,\n " ,
144144 " ExecutorchBackendConfig,\n " ,
You can’t perform that action at this time.
0 commit comments