aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/target/ethos_u/reporters.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2023-02-10 13:12:57 +0000
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2023-02-10 14:56:43 +0000
commit718277eaece76902c4950f18d428907b39a18ef1 (patch)
tree6fda1b8f8c2c0151f3697a2e9f31c2f5551cc2ff /src/mlia/target/ethos_u/reporters.py
parentfa1fad9332e2912f12a44a1b07716ee434174308 (diff)
downloadmlia-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/reporters.py')
-rw-r--r--src/mlia/target/ethos_u/reporters.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mlia/target/ethos_u/reporters.py b/src/mlia/target/ethos_u/reporters.py
index 4de60bb..2a5b5d3 100644
--- a/src/mlia/target/ethos_u/reporters.py
+++ b/src/mlia/target/ethos_u/reporters.py
@@ -110,9 +110,9 @@ def report_operators(ops: list[Operator]) -> Report:
return Table(columns, rows, name="Operators", alias="operators")
-def report_target_details(target: EthosUConfiguration) -> Report:
+def report_target_details(target_config: EthosUConfiguration) -> Report:
"""Return table representation for the target."""
- compiler_config = target.resolved_compiler_config
+ compiler_config = target_config.resolved_compiler_config
memory_settings = [
ReportItem(
@@ -211,8 +211,8 @@ def report_target_details(target: EthosUConfiguration) -> Report:
"Target information",
"target",
[
- ReportItem("Target", alias="target", value=target.target),
- ReportItem("MAC", alias="mac", value=target.mac),
+ ReportItem("Target", alias="target", value=target_config.target),
+ ReportItem("MAC", alias="mac", value=target_config.mac),
ReportItem(
"Memory mode",
alias="memory_mode",