Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions backends/arm/TARGETS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 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("@fbcode_macros//build_defs:python_library.bzl", "python_library")

Expand All @@ -12,6 +17,17 @@ python_library(
":arm_partitioner",
]
)
python_library(
name = "vgf_partitioner",
srcs = [
"vgf/__init__.py",
"vgf/backend.py",
"vgf/partitioner.py"
],
deps = [
":arm_partitioner",
]
)
python_library(
name = "constants",
srcs = [
Expand Down Expand Up @@ -39,8 +55,6 @@ python_library(
srcs = [
"tosa/backend.py",
"tosa/partitioner.py",
"vgf_backend.py",
"vgf_partitioner.py",
],
deps = [
":arm_backend",
Expand Down
2 changes: 1 addition & 1 deletion backends/arm/test/misc/test_extract_io_params_tosa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from executorch.backends.arm.test.common import SkipIfNoModelConverter
from executorch.backends.arm.tosa import TosaSpecification
from executorch.backends.arm.tosa.partitioner import TOSAPartitioner
from executorch.backends.arm.vgf_partitioner import VgfPartitioner
from executorch.backends.arm.vgf import VgfPartitioner
from executorch.exir import to_edge_transform_and_lower
from executorch.exir.passes.quantize_io_pass import extract_io_quant_params
from torchao.quantization.pt2e.quantize_pt2e import convert_pt2e, prepare_pt2e
Expand Down
2 changes: 1 addition & 1 deletion backends/arm/test/tester/arm_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
from executorch.backends.arm.tosa.partitioner import TOSAPartitioner
from executorch.backends.arm.tosa.specification import get_tosa_spec

from executorch.backends.arm.vgf_partitioner import VgfPartitioner
from executorch.backends.arm.vgf import VgfPartitioner

from executorch.backends.test.harness.stages import Stage, StageType
from executorch.backends.xnnpack.test.tester import Tester
Expand Down
14 changes: 14 additions & 0 deletions backends/arm/vgf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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.
#
# pyre-unsafe

from .backend import VgfBackend # noqa: F401
from .partitioner import VgfPartitioner # noqa: F401

__all__ = [
"VgfBackend",
"VgfPartitioner",
]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
is_vgf,
) # usort: skip
from executorch.backends.arm.tosa.partitioner import TOSAPartitioner
from executorch.backends.arm.vgf_backend import VgfBackend
from executorch.backends.arm.vgf import VgfBackend
from executorch.exir.backend.compile_spec_schema import CompileSpec
from executorch.exir.backend.partitioner import DelegationSpec
from torch.fx.passes.operator_support import OperatorSupportBase
Expand Down
2 changes: 1 addition & 1 deletion examples/arm/aot_arm_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
MobileNetV2Evaluator,
)

from executorch.backends.arm.vgf_partitioner import VgfPartitioner
from executorch.backends.arm.vgf import VgfPartitioner

# To use Cortex-M backend
from executorch.backends.cortex_m.passes.quantized_op_fusion_pass import (
Expand Down
2 changes: 1 addition & 1 deletion examples/arm/vgf_minimal_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"outputs": [],
"source": [
"import os\n",
"from executorch.backends.arm.vgf_partitioner import VgfPartitioner\n",
"from executorch.backends.arm.vgf import VgfPartitioner\n",
"from executorch.exir import (\n",
" EdgeCompileConfig,\n",
" ExecutorchBackendConfig,\n",
Expand Down
Loading