Skip to content

Commit d9e7a2e

Browse files
Arm backend: Add static public API manifest for 1.4 (pytorch#21416)
Create a static manifest for 1.4. This is a snapshot of what our API surface looks like at the point of the 1.4 cutoff. Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
1 parent 50a5db6 commit d9e7a2e

1 file changed

Lines changed: 189 additions & 0 deletions

File tree

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
# Copyright 2026 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+
# This file is generated by
7+
# backends/arm/scripts/public_api_manifest/generate_public_api_manifest.py
8+
9+
[python]
10+
11+
[python.EthosUBackend]
12+
kind = "class"
13+
signature = "EthosUBackend()"
14+
15+
[python.EthosUBackend.preprocess]
16+
kind = "function"
17+
signature = "EthosUBackend.preprocess(edge_program: torch.export.exported_program.ExportedProgram, compile_specs: List[executorch.exir.backend.compile_spec_schema.CompileSpec]) -> executorch.exir.backend.backend_details.PreprocessResult"
18+
19+
[python.EthosUCompileSpec]
20+
kind = "class"
21+
signature = "EthosUCompileSpec(target: str, system_config: str | None = None, memory_mode: str | None = None, extra_flags: list[str] | None = None, config_ini: str | None = 'Arm/vela.ini')"
22+
23+
[python.EthosUCompileSpec.DebugMode]
24+
kind = "enum"
25+
signature = "EthosUCompileSpec.DebugMode(*values)"
26+
27+
[python.EthosUCompileSpec.__eq__]
28+
kind = "function"
29+
signature = "EthosUCompileSpec.__eq__(self, other)"
30+
31+
[python.EthosUCompileSpec.__repr__]
32+
kind = "function"
33+
signature = "EthosUCompileSpec.__repr__(self)"
34+
35+
[python.EthosUCompileSpec.dump_debug_info]
36+
kind = "function"
37+
signature = "EthosUCompileSpec.dump_debug_info(self, debug_mode: executorch.backends.arm.common.arm_compile_spec.ArmCompileSpec.DebugMode | None)"
38+
39+
[python.EthosUCompileSpec.dump_intermediate_artifacts_to]
40+
kind = "function"
41+
signature = "EthosUCompileSpec.dump_intermediate_artifacts_to(self, output_path: str | None)"
42+
43+
[python.EthosUCompileSpec.set_pass_pipeline_config]
44+
kind = "function"
45+
signature = "EthosUCompileSpec.set_pass_pipeline_config(self, config: executorch.backends.arm.common.pipeline_config.ArmPassPipelineConfig) -> None"
46+
47+
[python.EthosUPartitioner]
48+
kind = "class"
49+
signature = "EthosUPartitioner(compile_spec: executorch.backends.arm.ethosu.compile_spec.EthosUCompileSpec, additional_checks: Optional[Sequence[torch.fx.passes.operator_support.OperatorSupportBase]] = None) -> None"
50+
51+
[python.EthosUPartitioner.ops_to_not_decompose]
52+
kind = "function"
53+
signature = "EthosUPartitioner.ops_to_not_decompose(self, ep: torch.export.exported_program.ExportedProgram) -> Tuple[List[torch._ops.OpOverload], Optional[Callable[[torch.fx.node.Node], bool]]]"
54+
55+
[python.EthosUPartitioner.partition]
56+
kind = "function"
57+
signature = "EthosUPartitioner.partition(self, exported_program: torch.export.exported_program.ExportedProgram) -> executorch.exir.backend.partitioner.PartitionResult"
58+
59+
[python.EthosUPartitioner.register_custom_partition_op]
60+
kind = "function"
61+
signature = "EthosUPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None"
62+
63+
[python.EthosUQuantizer]
64+
kind = "class"
65+
signature = "EthosUQuantizer(compile_spec: 'EthosUCompileSpec', use_composable_quantizer: 'bool' = True) -> 'None'"
66+
67+
[python.EthosUQuantizer.annotate]
68+
kind = "function"
69+
signature = "EthosUQuantizer.annotate(self, model: 'GraphModule') -> 'GraphModule'"
70+
71+
[python.EthosUQuantizer.set_global]
72+
kind = "function"
73+
signature = "EthosUQuantizer.set_global(self, quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
74+
75+
[python.EthosUQuantizer.set_io]
76+
kind = "function"
77+
signature = "EthosUQuantizer.set_io(self, quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
78+
79+
[python.EthosUQuantizer.set_module_name]
80+
kind = "function"
81+
signature = "EthosUQuantizer.set_module_name(self, module_name: 'str', quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
82+
83+
[python.EthosUQuantizer.set_module_type]
84+
kind = "function"
85+
signature = "EthosUQuantizer.set_module_type(self, module_type: 'Callable', quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
86+
87+
[python.EthosUQuantizer.transform_for_annotation]
88+
kind = "function"
89+
signature = "EthosUQuantizer.transform_for_annotation(self, model: 'GraphModule') -> 'GraphModule'"
90+
91+
[python.EthosUQuantizer.validate]
92+
kind = "function"
93+
signature = "EthosUQuantizer.validate(self, model: 'GraphModule') -> 'None'"
94+
95+
[python.VgfBackend]
96+
kind = "class"
97+
signature = "VgfBackend()"
98+
99+
[python.VgfBackend.preprocess]
100+
kind = "function"
101+
signature = "VgfBackend.preprocess(edge_program: torch.export.exported_program.ExportedProgram, compile_specs: List[executorch.exir.backend.compile_spec_schema.CompileSpec]) -> executorch.exir.backend.backend_details.PreprocessResult"
102+
103+
[python.VgfCompileSpec]
104+
kind = "class"
105+
signature = "VgfCompileSpec(tosa_spec: executorch.backends.arm.tosa.specification.TosaSpecification | str | None = None, compiler_flags: list[str] | None = None)"
106+
107+
[python.VgfCompileSpec.DebugMode]
108+
kind = "enum"
109+
signature = "VgfCompileSpec.DebugMode(*values)"
110+
111+
[python.VgfCompileSpec.__eq__]
112+
kind = "function"
113+
signature = "VgfCompileSpec.__eq__(self, other)"
114+
115+
[python.VgfCompileSpec.__repr__]
116+
kind = "function"
117+
signature = "VgfCompileSpec.__repr__(self)"
118+
119+
[python.VgfCompileSpec.dump_debug_info]
120+
kind = "function"
121+
signature = "VgfCompileSpec.dump_debug_info(self, debug_mode: executorch.backends.arm.common.arm_compile_spec.ArmCompileSpec.DebugMode | None)"
122+
123+
[python.VgfCompileSpec.dump_intermediate_artifacts_to]
124+
kind = "function"
125+
signature = "VgfCompileSpec.dump_intermediate_artifacts_to(self, output_path: str | None)"
126+
127+
[python.VgfCompileSpec.set_pass_pipeline_config]
128+
kind = "function"
129+
signature = "VgfCompileSpec.set_pass_pipeline_config(self, config: executorch.backends.arm.common.pipeline_config.ArmPassPipelineConfig) -> None"
130+
131+
[python.VgfCompileSpec.validate_environment]
132+
kind = "function"
133+
signature = "VgfCompileSpec.validate_environment(self, build_dir: str | None = None, *, require_runtime_build: bool = False) -> 'VgfEnvironmentReport'"
134+
135+
[python.VgfPartitioner]
136+
kind = "class"
137+
signature = "VgfPartitioner(compile_spec: executorch.backends.arm.vgf.compile_spec.VgfCompileSpec, additional_checks: Optional[Sequence[torch.fx.passes.operator_support.OperatorSupportBase]] = None) -> None"
138+
139+
[python.VgfPartitioner.ops_to_not_decompose]
140+
kind = "function"
141+
signature = "VgfPartitioner.ops_to_not_decompose(self, ep: torch.export.exported_program.ExportedProgram) -> Tuple[List[torch._ops.OpOverload], Optional[Callable[[torch.fx.node.Node], bool]]]"
142+
143+
[python.VgfPartitioner.partition]
144+
kind = "function"
145+
signature = "VgfPartitioner.partition(self, exported_program: torch.export.exported_program.ExportedProgram) -> executorch.exir.backend.partitioner.PartitionResult"
146+
147+
[python.VgfPartitioner.register_custom_partition_op]
148+
kind = "function"
149+
signature = "VgfPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None"
150+
151+
[python.VgfQuantizer]
152+
kind = "class"
153+
signature = "VgfQuantizer(compile_spec: 'VgfCompileSpec', use_composable_quantizer: 'bool' = True) -> 'None'"
154+
155+
[python.VgfQuantizer.annotate]
156+
kind = "function"
157+
signature = "VgfQuantizer.annotate(self, model: 'GraphModule') -> 'GraphModule'"
158+
159+
[python.VgfQuantizer.set_global]
160+
kind = "function"
161+
signature = "VgfQuantizer.set_global(self, quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
162+
163+
[python.VgfQuantizer.set_io]
164+
kind = "function"
165+
signature = "VgfQuantizer.set_io(self, quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
166+
167+
[python.VgfQuantizer.set_module_name]
168+
kind = "function"
169+
signature = "VgfQuantizer.set_module_name(self, module_name: 'str', quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
170+
171+
[python.VgfQuantizer.set_module_type]
172+
kind = "function"
173+
signature = "VgfQuantizer.set_module_type(self, module_type: 'Callable', quantization_config: 'Optional[QuantizationConfig]') -> 'TOSAQuantizer'"
174+
175+
[python.VgfQuantizer.transform_for_annotation]
176+
kind = "function"
177+
signature = "VgfQuantizer.transform_for_annotation(self, model: 'GraphModule') -> 'GraphModule'"
178+
179+
[python.VgfQuantizer.validate]
180+
kind = "function"
181+
signature = "VgfQuantizer.validate(self, model: 'GraphModule') -> 'None'"
182+
183+
[python.get_symmetric_a16w8_quantization_config]
184+
kind = "function"
185+
signature = "get_symmetric_a16w8_quantization_config(is_per_channel: 'bool' = True, is_qat: 'bool' = False, is_dynamic: 'bool' = False, weight_qmin: 'int' = -127, weight_qmax: 'int' = 127, epsilon: 'float' = 0.000244140625) -> 'QuantizationConfig'"
186+
187+
[python.get_symmetric_quantization_config]
188+
kind = "function"
189+
signature = "get_symmetric_quantization_config(is_per_channel: 'bool' = True, is_qat: 'bool' = False, is_dynamic: 'bool' = False, act_qmin: 'int' = -128, act_qmax: 'int' = 127, weight_qmin: 'int' = -127, weight_qmax: 'int' = 127, eps: 'float' = 1.52587890625e-05) -> 'QuantizationConfig'"

0 commit comments

Comments
 (0)