diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 16:00:34 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-10 13:45:18 +0000 |
commit | fa1fad9332e2912f12a44a1b07716ee434174308 (patch) | |
tree | 246dfdb4ec9c495faaa55d73e061bcb4f8171d98 /src/mlia/target/cortex_a/reporters.py | |
parent | 7a661257b6adad0c8f53e32b42ced56a1e7d952f (diff) | |
download | mlia-fa1fad9332e2912f12a44a1b07716ee434174308.tar.gz |
MLIA-769 Replace use of 'device' with 'target'
Term 'device' can be ambiguous and is replaced with 'target'.
Change-Id: I5e5108d033a13b98e4c2997713e1c32bce63ae62
Diffstat (limited to 'src/mlia/target/cortex_a/reporters.py')
-rw-r--r-- | src/mlia/target/cortex_a/reporters.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mlia/target/cortex_a/reporters.py b/src/mlia/target/cortex_a/reporters.py index d43d6c3..e23bf4d 100644 --- a/src/mlia/target/cortex_a/reporters.py +++ b/src/mlia/target/cortex_a/reporters.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. +# SPDX-FileCopyrightText: Copyright 2022-2023, Arm Limited and/or its affiliates. # SPDX-License-Identifier: Apache-2.0 """Reports module.""" from __future__ import annotations @@ -23,13 +23,13 @@ from mlia.utils.console import style_improvement from mlia.utils.types import is_list_of -def report_device(device: CortexAConfiguration) -> Report: - """Generate report for the device.""" +def report_target(target: CortexAConfiguration) -> Report: + """Generate report for the target.""" return NestedReport( - "Device information", - "device", + "Target information", + "target", [ - ReportItem("Target", alias="target", value=device.target), + ReportItem("Target", alias="target", value=target.target), ], ) @@ -129,7 +129,7 @@ def cortex_a_formatters(data: Any) -> Callable[[Any], Report]: return report_advice if isinstance(data, CortexAConfiguration): - return report_device + return report_target if isinstance(data, TFLiteCompatibilityInfo): return report_tflite_compatiblity |