Skip to content

Commit 63d5e55

Browse files
authored
Arm backend: Automatic list of supported ops, (pytorch#22842)
This PR adds automatic operator support documentation generation for the Ethos-U55 backend, using the same docgen infrastructure as the existing VGF support. The backend configuration and coverage checks are extended so Ethos-U55 support can be generated and validated independently, including the U55-specific filtering and pipeline configuration. The coverage check also allows Ethos-U55 to temporarily have fewer than 5 missing profile cells without failing the docgen validation. Other backends remain strict by default. There are currently three operators without Ethos-U55 coverage. I am going to address these separately and remove the temporary allowance once the missing coverage has been added. The generated Ethos-U55 operator support documentation is included in the normal ARM docgen validation flow so future changes to supported operators or test coverage are detected automatically. cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani Signed-off-by: Elena Zhelezina <elena.zhelezina@arm.com>
1 parent 81a2379 commit 63d5e55

8 files changed

Lines changed: 621 additions & 204 deletions

File tree

‎backends/arm/operator_support/tosa_supported_operators.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def _is_integer_dtype(dtype: torch.dtype) -> bool:
158158
class ProductSupported(SupportedTOSAOperatorCheck):
159159
"""Provide TOSA support check for product reductions."""
160160

161+
# TOSA REDUCE_PRODUCT is only available to the floating-point path used by
162+
# this checker. Do not register prod.dim_int as positive support for an
163+
# INT-only specification such as Ethos-U55.
164+
tosa_specs = TosaSpecification.all_versions_for_profile("FP")
161165
targets = [exir_ops.edge.aten.prod.dim_int]
162166

163167
@staticmethod

‎backends/arm/scripts/docgen/BUCK‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ oncall("executorch")
1010

1111
fbcode_target(
1212
_kind = runtime.python_library,
13-
name = "generate_vgf_op_support",
13+
name = "generate_op_support",
1414
srcs = [
1515
"__init__.py",
16-
"generate_vgf_op_support.py",
16+
"generate_op_support.py",
1717
],
1818
)

0 commit comments

Comments
 (0)