From 583288356643acfea6f366c3908b5e10b787a124 Mon Sep 17 00:00:00 2001 From: Sebastian Larsson Date: Thu, 29 Oct 2026 18:40:06 +0100 Subject: [PATCH] Arm backend: Snapshot the release/1.6 public API Copy the running manifest unchanged from release/1.6 at 4fcdbf49bdb01c9312b55f7448fdf705472f2075. Keep the 1.5 and 1.6 static manifests and remove the oldest snapshot. The release snapshot excludes the VGF alias_buffer_mutations argument, which is available on main but is absent from the 1.6 release branch. Keep the running manifest on main unchanged. AI-assisted-by: Codex Signed-off-by: Sebastian Larsson Change-Id: I2e5eb604fad8448fa9927e267a80f2d2c98ca48b --- ...anifest_1_4.toml => api_manifest_1_6.toml} | 102 +++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) rename backends/arm/public_api_manifests/{api_manifest_1_4.toml => api_manifest_1_6.toml} (67%) diff --git a/backends/arm/public_api_manifests/api_manifest_1_4.toml b/backends/arm/public_api_manifests/api_manifest_1_6.toml similarity index 67% rename from backends/arm/public_api_manifests/api_manifest_1_4.toml rename to backends/arm/public_api_manifests/api_manifest_1_6.toml index 25f0c0104fe..a114fce89ef 100644 --- a/backends/arm/public_api_manifests/api_manifest_1_4.toml +++ b/backends/arm/public_api_manifests/api_manifest_1_6.toml @@ -18,7 +18,7 @@ signature = "EthosUBackend.preprocess(edge_program: torch.export.exported_progra [python.EthosUCompileSpec] kind = "class" -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')" +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)" [python.EthosUCompileSpec.DebugMode] kind = "enum" @@ -60,6 +60,10 @@ signature = "EthosUPartitioner.partition(self, exported_program: torch.export.ex kind = "function" signature = "EthosUPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None" +[python.EthosUPartitioner.transform_for_pre_decomposition] +kind = "function" +signature = "EthosUPartitioner.transform_for_pre_decomposition(self, exported_program: torch.export.exported_program.ExportedProgram) -> torch.export.exported_program.ExportedProgram" + [python.EthosUQuantizer] kind = "class" signature = "EthosUQuantizer(compile_spec: 'EthosUCompileSpec', use_composable_quantizer: 'bool' = True) -> 'None'" @@ -92,6 +96,38 @@ signature = "EthosUQuantizer.transform_for_annotation(self, model: 'GraphModule' kind = "function" signature = "EthosUQuantizer.validate(self, model: 'GraphModule') -> 'None'" +[python.VelaExternalBlockPlacements] +kind = "class" +signature = "VelaExternalBlockPlacements(cmd_data: str | None = None, weight_data: str | None = None) -> None" + +[python.VelaExternalBlockPlacements.__delattr__] +kind = "function" +signature = "VelaExternalBlockPlacements.__delattr__(self, name)" + +[python.VelaExternalBlockPlacements.__eq__] +kind = "function" +signature = "VelaExternalBlockPlacements.__eq__(self, other)" + +[python.VelaExternalBlockPlacements.__hash__] +kind = "function" +signature = "VelaExternalBlockPlacements.__hash__(self)" + +[python.VelaExternalBlockPlacements.__post_init__] +kind = "function" +signature = "VelaExternalBlockPlacements.__post_init__(self) -> None" + +[python.VelaExternalBlockPlacements.__repr__] +kind = "function" +signature = "VelaExternalBlockPlacements.__repr__(self)" + +[python.VelaExternalBlockPlacements.__setattr__] +kind = "function" +signature = "VelaExternalBlockPlacements.__setattr__(self, name, value)" + +[python.VelaExternalBlockPlacements.to_block_placements] +kind = "function" +signature = "VelaExternalBlockPlacements.to_block_placements(self) -> dict[str, str]" + [python.VgfBackend] kind = "class" signature = "VgfBackend()" @@ -102,7 +138,7 @@ signature = "VgfBackend.preprocess(edge_program: torch.export.exported_program.E [python.VgfCompileSpec] kind = "class" -signature = "VgfCompileSpec(tosa_spec: executorch.backends.arm.tosa.specification.TosaSpecification | str | None = None, compiler_flags: list[str] | None = None)" +signature = "VgfCompileSpec(tosa_spec: executorch.backends.arm.tosa.specification.TosaSpecification | str | None = None, compiler_flags: list[str] | None = None, emit_debug_info: bool = False)" [python.VgfCompileSpec.DebugMode] kind = "enum" @@ -148,6 +184,10 @@ signature = "VgfPartitioner.partition(self, exported_program: torch.export.expor kind = "function" signature = "VgfPartitioner.register_custom_partition_op(self, op: torch._ops.OpOverload) -> None" +[python.VgfPartitioner.transform_for_pre_decomposition] +kind = "function" +signature = "VgfPartitioner.transform_for_pre_decomposition(self, exported_program: torch.export.exported_program.ExportedProgram) -> torch.export.exported_program.ExportedProgram" + [python.VgfQuantizer] kind = "class" 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 [python.get_symmetric_quantization_config] kind = "function" 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'" + +[cmake] + +[cmake.arm_runner_add_minimal_executable] +kind = "function" +signature = "arm_runner_add_minimal_executable(*, TARGET, SOURCE, OPS_PREFIX, COMPILE_DEFINITIONS=())" + +[cmake.arm_runner_add_standalone_executorch] +kind = "macro" +signature = "arm_runner_add_standalone_executorch()" + +[cmake.arm_runner_configure_ethos_u_platform] +kind = "function" +signature = "arm_runner_configure_ethos_u_platform(*, SDK_PATH, SYSTEM_CONFIG, MEMORY_MODE)" + +[cmake.arm_runner_configure_linker_script] +kind = "function" +signature = "arm_runner_configure_linker_script(*, TARGET, SYSTEM_CONFIG, OUTPUT_NAME=None)" + +[cmake.arm_runner_configure_model] +kind = "function" +signature = "arm_runner_configure_model(*, TARGET, PTE_FILE=None, MODEL_PTE_ADDR=None, MODEL_PTE_SIZE=None, PUBLIC=False)" + +[cmake.arm_runner_configure_runtime_output] +kind = "function" +signature = "arm_runner_configure_runtime_output(TARGET_NAME, FALLBACK_DIR)" + +[cmake.arm_runner_create_default_selected_ops_libs] +kind = "function" +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=())" + +[cmake.arm_runner_create_selected_ops_lib] +kind = "function" +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)" + +[cmake.arm_runner_define_cache_options] +kind = "function" +signature = "arm_runner_define_cache_options(*, METHOD_ALLOCATOR_SIZE=None)" + +[cmake.arm_runner_link_minimal_specs] +kind = "function" +signature = "arm_runner_link_minimal_specs(TARGET_NAME)" + +[cmake.arm_runner_link_registration_libraries] +kind = "function" +signature = "arm_runner_link_registration_libraries(*, TARGET, SCOPE=None, BASE_LIBS=(), REGISTRATION_LIBS=(), NORMAL_LIBS=(), SUPPRESS_LIBS=())" + +[cmake.arm_runner_require_baremetal_targets] +kind = "function" +signature = "arm_runner_require_baremetal_targets()" + +[cmake.arm_runner_require_python] +kind = "macro" +signature = "arm_runner_require_python()" + +[cmake.arm_runner_validate_model_source] +kind = "function" +signature = "arm_runner_validate_model_source(*, ALLOW_SEMIHOSTING=False)"