File tree Expand file tree Collapse file tree 8 files changed +35
-7
lines changed Expand file tree Collapse file tree 8 files changed +35
-7
lines changed 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
+
1
6
# @noautodeps
2
7
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3
8
@@ -12,6 +17,17 @@ python_library(
12
17
":arm_partitioner",
13
18
]
14
19
)
20
+ python_library(
21
+ name = "vgf_partitioner",
22
+ srcs = [
23
+ "vgf/__init__.py",
24
+ "vgf/backend.py",
25
+ "vgf/partitioner.py"
26
+ ],
27
+ deps = [
28
+ ":arm_partitioner",
29
+ ]
30
+ )
15
31
python_library(
16
32
name = "constants",
17
33
srcs = [
@@ -39,8 +55,6 @@ python_library(
39
55
srcs = [
40
56
"tosa/backend.py",
41
57
"tosa/partitioner.py",
42
- "vgf_backend.py",
43
- "vgf_partitioner.py",
44
58
],
45
59
deps = [
46
60
":arm_backend",
Original file line number Diff line number Diff line change 17
17
from executorch .backends .arm .test .common import SkipIfNoModelConverter
18
18
from executorch .backends .arm .tosa import TosaSpecification
19
19
from executorch .backends .arm .tosa .partitioner import TOSAPartitioner
20
- from executorch .backends .arm .vgf_partitioner import VgfPartitioner
20
+ from executorch .backends .arm .vgf import VgfPartitioner
21
21
from executorch .exir import to_edge_transform_and_lower
22
22
from executorch .exir .passes .quantize_io_pass import extract_io_quant_params
23
23
from torchao .quantization .pt2e .quantize_pt2e import convert_pt2e , prepare_pt2e
Original file line number Diff line number Diff line change 63
63
from executorch .backends .arm .tosa .partitioner import TOSAPartitioner
64
64
from executorch .backends .arm .tosa .specification import get_tosa_spec
65
65
66
- from executorch .backends .arm .vgf_partitioner import VgfPartitioner
66
+ from executorch .backends .arm .vgf import VgfPartitioner
67
67
68
68
from executorch .backends .test .harness .stages import Stage , StageType
69
69
from executorch .backends .xnnpack .test .tester import Tester
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 VgfBackend # noqa: F401
9
+ from .partitioner import VgfPartitioner # noqa: F401
10
+
11
+ __all__ = [
12
+ "VgfBackend" ,
13
+ "VgfPartitioner" ,
14
+ ]
File renamed without changes.
Original file line number Diff line number Diff line change 11
11
is_vgf ,
12
12
) # usort: skip
13
13
from executorch .backends .arm .tosa .partitioner import TOSAPartitioner
14
- from executorch .backends .arm .vgf_backend import VgfBackend
14
+ from executorch .backends .arm .vgf import VgfBackend
15
15
from executorch .exir .backend .compile_spec_schema import CompileSpec
16
16
from executorch .exir .backend .partitioner import DelegationSpec
17
17
from torch .fx .passes .operator_support import OperatorSupportBase
Original file line number Diff line number Diff line change 40
40
MobileNetV2Evaluator ,
41
41
)
42
42
43
- from executorch .backends .arm .vgf_partitioner import VgfPartitioner
43
+ from executorch .backends .arm .vgf import VgfPartitioner
44
44
45
45
# To use Cortex-M backend
46
46
from executorch .backends .cortex_m .passes .quantized_op_fusion_pass import (
Original file line number Diff line number Diff line change 181
181
"outputs" : [],
182
182
"source" : [
183
183
" import os\n " ,
184
- " from executorch.backends.arm.vgf_partitioner import VgfPartitioner\n " ,
184
+ " from executorch.backends.arm.vgf import VgfPartitioner\n " ,
185
185
" from executorch.exir import (\n " ,
186
186
" EdgeCompileConfig,\n " ,
187
187
" ExecutorchBackendConfig,\n " ,
You can’t perform that action at this time.
0 commit comments