aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/cli
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2022-12-14 11:20:11 +0000
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2023-01-04 10:11:33 +0000
commitdcd0bd31985c27e1d07333351b26cf8ad12ad1fd (patch)
treea3388ff5f91e7cdc7ec41271a1a76cdbfae38ece /src/mlia/cli
parent4b4cf29cb1e7d917ae001e258ff01f7846c34778 (diff)
downloadmlia-dcd0bd31985c27e1d07333351b26cf8ad12ad1fd.tar.gz
MLIA-589 Create an API to get target information
Change-Id: Ieeaa9188ea1e29e2ccaad7475d457bce71e3140d
Diffstat (limited to 'src/mlia/cli')
-rw-r--r--src/mlia/cli/main.py9
-rw-r--r--src/mlia/cli/options.py2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/mlia/cli/main.py b/src/mlia/cli/main.py
index 98fdb63..ac60308 100644
--- a/src/mlia/cli/main.py
+++ b/src/mlia/cli/main.py
@@ -12,6 +12,7 @@ from pathlib import Path
from mlia import __version__
from mlia.backend.errors import BackendUnavailableError
+from mlia.backend.registry import registry as backend_registry
from mlia.cli.commands import all_tests
from mlia.cli.commands import backend_install
from mlia.cli.commands import backend_list
@@ -36,6 +37,7 @@ from mlia.cli.options import add_tflite_model_options
from mlia.core.context import ExecutionContext
from mlia.core.errors import ConfigurationError
from mlia.core.errors import InternalError
+from mlia.target.registry import registry as target_registry
logger = logging.getLogger(__name__)
@@ -46,11 +48,10 @@ ML Inference Advisor {__version__}
Help the design and optimization of neural network models for efficient inference on a target CPU and NPU
Supported targets:
+{target_registry}
- - Cortex-A <op compatibility>
- - Ethos-U55 <op compatibility, perf estimation, model opt>
- - Ethos-U65 <op compatibility, perf estimation, model opt>
- - TOSA <op compatibility>
+Supported backends:
+{backend_registry}
""".strip()
diff --git a/src/mlia/cli/options.py b/src/mlia/cli/options.py
index 5eab9aa..8ea4250 100644
--- a/src/mlia/cli/options.py
+++ b/src/mlia/cli/options.py
@@ -38,7 +38,7 @@ def add_target_options(
help="Target profile that will set the target options "
"such as target, mac value, memory mode, etc. "
f"For the values associated with each target profile "
- f" please refer to the documenation {default_help}.",
+ f" please refer to the documentation {default_help}.",
)