Skip to content

Commit 5c1112c

Browse files
Arm backend: Add static public API manifest for 1.6 (#24290)
Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
1 parent 22df868 commit 5c1112c

1 file changed

Lines changed: 100 additions & 2 deletions

File tree

backends/arm/public_api_manifests/api_manifest_1_4.toml renamed to backends/arm/public_api_manifests/api_manifest_1_6.toml

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ signature = "EthosUBackend.preprocess(edge_program: torch.export.exported_progra
1818

1919
[python.EthosUCompileSpec]
2020
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')"
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', external_block_placements: executorch.backends.arm.ethosu.compile_spec.VelaExternalBlockPlacements | None = None, max_scratch_size: int | None = None)"
2222

2323
[python.EthosUCompileSpec.DebugMode]
2424
kind = "enum"
@@ -60,6 +60,10 @@ signature = "EthosUPartitioner.partition(self, exported_program: torch.export.ex
6060
kind = "function"
6161
signature = "EthosUPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None"
6262

63+
[python.EthosUPartitioner.transform_for_pre_decomposition]
64+
kind = "function"
65+
signature = "EthosUPartitioner.transform_for_pre_decomposition(self, exported_program: torch.export.exported_program.ExportedProgram) -> torch.export.exported_program.ExportedProgram"
66+
6367
[python.EthosUQuantizer]
6468
kind = "class"
6569
signature = "EthosUQuantizer(compile_spec: 'EthosUCompileSpec', use_composable_quantizer: 'bool' = True) -> 'None'"
@@ -92,6 +96,38 @@ signature = "EthosUQuantizer.transform_for_annotation(self, model: 'GraphModule'
9296
kind = "function"
9397
signature = "EthosUQuantizer.validate(self, model: 'GraphModule') -> 'None'"
9498

99+
[python.VelaExternalBlockPlacements]
100+
kind = "class"
101+
signature = "VelaExternalBlockPlacements(cmd_data: str | None = None, weight_data: str | None = None) -> None"
102+
103+
[python.VelaExternalBlockPlacements.__delattr__]
104+
kind = "function"
105+
signature = "VelaExternalBlockPlacements.__delattr__(self, name)"
106+
107+
[python.VelaExternalBlockPlacements.__eq__]
108+
kind = "function"
109+
signature = "VelaExternalBlockPlacements.__eq__(self, other)"
110+
111+
[python.VelaExternalBlockPlacements.__hash__]
112+
kind = "function"
113+
signature = "VelaExternalBlockPlacements.__hash__(self)"
114+
115+
[python.VelaExternalBlockPlacements.__post_init__]
116+
kind = "function"
117+
signature = "VelaExternalBlockPlacements.__post_init__(self) -> None"
118+
119+
[python.VelaExternalBlockPlacements.__repr__]
120+
kind = "function"
121+
signature = "VelaExternalBlockPlacements.__repr__(self)"
122+
123+
[python.VelaExternalBlockPlacements.__setattr__]
124+
kind = "function"
125+
signature = "VelaExternalBlockPlacements.__setattr__(self, name, value)"
126+
127+
[python.VelaExternalBlockPlacements.to_block_placements]
128+
kind = "function"
129+
signature = "VelaExternalBlockPlacements.to_block_placements(self) -> dict[str, str]"
130+
95131
[python.VgfBackend]
96132
kind = "class"
97133
signature = "VgfBackend()"
@@ -102,7 +138,7 @@ signature = "VgfBackend.preprocess(edge_program: torch.export.exported_program.E
102138

103139
[python.VgfCompileSpec]
104140
kind = "class"
105-
signature = "VgfCompileSpec(tosa_spec: executorch.backends.arm.tosa.specification.TosaSpecification | str | None = None, compiler_flags: list[str] | None = None)"
141+
signature = "VgfCompileSpec(tosa_spec: executorch.backends.arm.tosa.specification.TosaSpecification | str | None = None, compiler_flags: list[str] | None = None, emit_debug_info: bool = False, alias_buffer_mutations: bool = False)"
106142

107143
[python.VgfCompileSpec.DebugMode]
108144
kind = "enum"
@@ -148,6 +184,10 @@ signature = "VgfPartitioner.partition(self, exported_program: torch.export.expor
148184
kind = "function"
149185
signature = "VgfPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None"
150186

187+
[python.VgfPartitioner.transform_for_pre_decomposition]
188+
kind = "function"
189+
signature = "VgfPartitioner.transform_for_pre_decomposition(self, exported_program: torch.export.exported_program.ExportedProgram) -> torch.export.exported_program.ExportedProgram"
190+
151191
[python.VgfQuantizer]
152192
kind = "class"
153193
signature = "VgfQuantizer(compile_spec: 'VgfCompileSpec', use_composable_quantizer: 'bool' = True) -> 'None'"
@@ -187,3 +227,61 @@ signature = "get_symmetric_a16w8_quantization_config(is_per_channel: 'bool' = Tr
187227
[python.get_symmetric_quantization_config]
188228
kind = "function"
189229
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'"
230+
231+
[cmake]
232+
233+
[cmake.arm_runner_add_minimal_executable]
234+
kind = "function"
235+
signature = "arm_runner_add_minimal_executable(*, TARGET, SOURCE, OPS_PREFIX, COMPILE_DEFINITIONS=())"
236+
237+
[cmake.arm_runner_add_standalone_executorch]
238+
kind = "macro"
239+
signature = "arm_runner_add_standalone_executorch()"
240+
241+
[cmake.arm_runner_configure_ethos_u_platform]
242+
kind = "function"
243+
signature = "arm_runner_configure_ethos_u_platform(*, SDK_PATH, SYSTEM_CONFIG, MEMORY_MODE)"
244+
245+
[cmake.arm_runner_configure_linker_script]
246+
kind = "function"
247+
signature = "arm_runner_configure_linker_script(*, TARGET, SYSTEM_CONFIG, OUTPUT_NAME=None)"
248+
249+
[cmake.arm_runner_configure_model]
250+
kind = "function"
251+
signature = "arm_runner_configure_model(*, TARGET, PTE_FILE=None, MODEL_PTE_ADDR=None, MODEL_PTE_SIZE=None, PUBLIC=False)"
252+
253+
[cmake.arm_runner_configure_runtime_output]
254+
kind = "function"
255+
signature = "arm_runner_configure_runtime_output(TARGET_NAME, FALLBACK_DIR)"
256+
257+
[cmake.arm_runner_create_default_selected_ops_libs]
258+
kind = "function"
259+
signature = "arm_runner_create_default_selected_ops_libs(*, PREFIX, SUFFIX=None, OP_LIST=None, OPS_FROM_MODEL=None, DTYPE_SELECTIVE_BUILD=None, OUT_LIBS=None, DEPS=())"
260+
261+
[cmake.arm_runner_create_selected_ops_lib]
262+
kind = "function"
263+
signature = "arm_runner_create_selected_ops_lib(*, LIB_NAME, FUNCTIONS_YAML=None, CUSTOM_OPS_YAML=None, OP_LIST=None, OPS_FROM_MODEL=None, DTYPE_SELECTIVE_BUILD=None, KERNEL_LIBS=(), DEPS=(), INCLUDE_ALL_OPS=False, PRIM_OPS=False)"
264+
265+
[cmake.arm_runner_define_cache_options]
266+
kind = "function"
267+
signature = "arm_runner_define_cache_options(*, METHOD_ALLOCATOR_SIZE=None)"
268+
269+
[cmake.arm_runner_link_minimal_specs]
270+
kind = "function"
271+
signature = "arm_runner_link_minimal_specs(TARGET_NAME)"
272+
273+
[cmake.arm_runner_link_registration_libraries]
274+
kind = "function"
275+
signature = "arm_runner_link_registration_libraries(*, TARGET, SCOPE=None, BASE_LIBS=(), REGISTRATION_LIBS=(), NORMAL_LIBS=(), SUPPRESS_LIBS=())"
276+
277+
[cmake.arm_runner_require_baremetal_targets]
278+
kind = "function"
279+
signature = "arm_runner_require_baremetal_targets()"
280+
281+
[cmake.arm_runner_require_python]
282+
kind = "macro"
283+
signature = "arm_runner_require_python()"
284+
285+
[cmake.arm_runner_validate_model_source]
286+
kind = "function"
287+
signature = "arm_runner_validate_model_source(*, ALLOW_SEMIHOSTING=False)"

0 commit comments

Comments
 (0)