diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-02 14:02:05 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-10 13:45:18 +0000 |
commit | 7a661257b6adad0c8f53e32b42ced56a1e7d952f (patch) | |
tree | 938ad8578c5b9edc0573e810ce64ce0a5bda3d8c /tests/test_target_ethos_u_reporters.py | |
parent | 50271dee0a84bfc481ce798184f07b5b0b4bc64d (diff) | |
download | mlia-7a661257b6adad0c8f53e32b42ced56a1e7d952f.tar.gz |
MLIA-769 Expand use of target/backend registries
- Use the target/backend registries to avoid hard-coded names.
- Cache target profiles to avoid re-loading them
Change-Id: I474b7c9ef23894e1d8a3ea06d13a37652054c62e
Diffstat (limited to 'tests/test_target_ethos_u_reporters.py')
-rw-r--r-- | tests/test_target_ethos_u_reporters.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_target_ethos_u_reporters.py b/tests/test_target_ethos_u_reporters.py index 0c5764e..9707dff 100644 --- a/tests/test_target_ethos_u_reporters.py +++ b/tests/test_target_ethos_u_reporters.py @@ -3,6 +3,8 @@ """Tests for reports module.""" from __future__ import annotations +from typing import cast + import pytest from mlia.backend.vela.compat import NpuSupported @@ -12,6 +14,7 @@ from mlia.core.reporting import Table from mlia.target.ethos_u.config import EthosUConfiguration from mlia.target.ethos_u.reporters import report_device_details from mlia.target.ethos_u.reporters import report_operators +from mlia.target.registry import profile from mlia.utils.console import remove_ascii_codes @@ -118,7 +121,7 @@ def test_report_operators( "device, expected_plain_text, expected_json_dict", [ [ - EthosUConfiguration.load_profile("ethos-u55-256"), + cast(EthosUConfiguration, profile("ethos-u55-256")), """Device information: Target ethos-u55 MAC 256 |