From 7a661257b6adad0c8f53e32b42ced56a1e7d952f Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Thu, 2 Feb 2023 14:02:05 +0000 Subject: 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 --- src/mlia/target/cortex_a/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mlia/target/cortex_a/__init__.py') diff --git a/src/mlia/target/cortex_a/__init__.py b/src/mlia/target/cortex_a/__init__.py index f686bfc..87f268a 100644 --- a/src/mlia/target/cortex_a/__init__.py +++ b/src/mlia/target/cortex_a/__init__.py @@ -1,7 +1,17 @@ # SPDX-FileCopyrightText: Copyright 2022-2023, Arm Limited and/or its affiliates. # SPDX-License-Identifier: Apache-2.0 """Cortex-A target module.""" +from mlia.target.cortex_a.advisor import configure_and_get_cortexa_advisor +from mlia.target.cortex_a.config import CortexAConfiguration from mlia.target.registry import registry from mlia.target.registry import TargetInfo -registry.register("cortex-a", TargetInfo(["ArmNNTFLiteDelegate"])) +registry.register( + "cortex-a", + TargetInfo( + supported_backends=["ArmNNTFLiteDelegate"], + default_backends=["ArmNNTFLiteDelegate"], + advisor_factory_func=configure_and_get_cortexa_advisor, + target_profile_cls=CortexAConfiguration, + ), +) -- cgit v1.2.1