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/cli/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mlia/cli/commands.py') diff --git a/src/mlia/cli/commands.py b/src/mlia/cli/commands.py index e044e1a..72ae4bb 100644 --- a/src/mlia/cli/commands.py +++ b/src/mlia/cli/commands.py @@ -23,11 +23,11 @@ from pathlib import Path from typing import cast from mlia.api import ExecutionContext +from mlia.api import generate_supported_operators_report from mlia.api import get_advice from mlia.api import PathOrFileLike from mlia.cli.config import get_installation_manager from mlia.cli.options import parse_optimization_parameters -from mlia.devices.ethosu.operators import generate_supported_operators_report from mlia.utils.console import create_section_header from mlia.utils.types import only_one_selected @@ -129,7 +129,7 @@ def operators( "model.tflite") """ if supported_ops_report: - generate_supported_operators_report() + generate_supported_operators_report(target_profile) logger.info("Report saved into SUPPORTED_OPS.md") return -- cgit v1.2.1