From 27668f6837c4f0a7197d13baff7bffc11f652fba Mon Sep 17 00:00:00 2001 From: Raul Farkas Date: Fri, 4 Nov 2022 16:12:52 +0000 Subject: MLIA-688 Fix --supported-ops-report flag * Add `api.generate_supported_operators_report` that calls a report generator based on given target profile. * Update `--supported-ops-report` cli flag help section and README.md info by specifying that it is currently only supported for Ethos-U. * Add tests for `generate_supported_operators_report` method. * Add stub methods `report` for Cortex-A and Tosa operators.py module that throw a "Not supported" exception. Change-Id: Iaf373fe48299d807e48fd6a0e6c029ce32203f4f --- src/mlia/devices/cortexa/operators.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mlia/devices/cortexa/operators.py') diff --git a/src/mlia/devices/cortexa/operators.py b/src/mlia/devices/cortexa/operators.py index 8fd2571..d46b107 100644 --- a/src/mlia/devices/cortexa/operators.py +++ b/src/mlia/devices/cortexa/operators.py @@ -29,3 +29,11 @@ def get_cortex_a_compatibility_info( ) -> CortexACompatibilityInfo | None: """Return list of model's operators.""" return None + + +def report() -> None: + """Generate supported operators report.""" + raise Exception( + "Generating a supported operators report is not " + "currently supported with Cortex-A target profile." + ) -- cgit v1.2.1