diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-10 13:12:57 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-10 14:56:43 +0000 |
commit | 718277eaece76902c4950f18d428907b39a18ef1 (patch) | |
tree | 6fda1b8f8c2c0151f3697a2e9f31c2f5551cc2ff /src/mlia/target/ethos_u/__init__.py | |
parent | fa1fad9332e2912f12a44a1b07716ee434174308 (diff) | |
download | mlia-718277eaece76902c4950f18d428907b39a18ef1.tar.gz |
MLIA-769 Add "pretty names" for targets / backends
- Provide "pretty names" to print information for targets and backends.
- Use 'target_config' instead of 'target' if a target profile is
used.
- Fix minor issue in output regarding the output directory.
Change-Id: Ib38231f30b4d609a0d1e8f9c52b2fb547c69cb6a
Diffstat (limited to 'src/mlia/target/ethos_u/__init__.py')
-rw-r--r-- | src/mlia/target/ethos_u/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mlia/target/ethos_u/__init__.py b/src/mlia/target/ethos_u/__init__.py index 6b6777d..7fa8af1 100644 --- a/src/mlia/target/ethos_u/__init__.py +++ b/src/mlia/target/ethos_u/__init__.py @@ -8,16 +8,20 @@ from mlia.target.ethos_u.config import get_default_ethos_u_backends from mlia.target.registry import registry from mlia.target.registry import TargetInfo -SUPPORTED_BACKENDS_PRIORITY = ["Vela", *CORSTONE_PRIORITY] +SUPPORTED_BACKENDS_PRIORITY = [ + "vela", + *(corstone.lower() for corstone in CORSTONE_PRIORITY), +] -for ethos_u in ("ethos-u55", "ethos-u65"): +for name in ("Ethos-U55", "Ethos-U65"): registry.register( - ethos_u, + name.lower(), TargetInfo( supported_backends=SUPPORTED_BACKENDS_PRIORITY, default_backends=get_default_ethos_u_backends(SUPPORTED_BACKENDS_PRIORITY), advisor_factory_func=configure_and_get_ethosu_advisor, target_profile_cls=EthosUConfiguration, ), + pretty_name=name, ) |