aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/target/cortex_a/config.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2024-03-21 17:33:17 +0000
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2024-03-22 10:06:28 +0000
commitc7ee5b783f044d7ff641773aa385840f5ff944cc (patch)
tree297f308978b00282d8ebd3a1f71e1ae5e678a767 /src/mlia/target/cortex_a/config.py
parent508281df31dc3c18f2e007f4dd505160342a681a (diff)
downloadmlia-c7ee5b783f044d7ff641773aa385840f5ff944cc.tar.gz
refactor: Backend dependencies and more
- Add backend dependencies: One backend can now depend on another backend. - Re-factor 'DownloadArtifact': - Rename 'DownloadArtifact' to 'DownloadConfig' - Remove attributes 'name' and 'version' not relevant for downloads - Add helper properties: - 'filename' parses the URL to extract the file name from the end - 'headers' calls the function to generate a HTML header for the download - Add OutputLogger helper class - Re-factor handling of backend configurations in the target profiles. Change-Id: Ifda6cf12c375d0c1747d7e4130a0370d22c3d33a Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
Diffstat (limited to 'src/mlia/target/cortex_a/config.py')
-rw-r--r--src/mlia/target/cortex_a/config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mlia/target/cortex_a/config.py b/src/mlia/target/cortex_a/config.py
index f91031e..4f33f3d 100644
--- a/src/mlia/target/cortex_a/config.py
+++ b/src/mlia/target/cortex_a/config.py
@@ -15,12 +15,12 @@ class CortexAConfiguration(TargetProfile):
def __init__(self, **kwargs: Any) -> None:
"""Init Cortex-A target configuration."""
target = kwargs["target"]
- super().__init__(target)
+ backend_config = kwargs.get("backend")
+ super().__init__(target, backend_config)
- self.backend_config = kwargs.get("backend")
- self.armnn_tflite_delegate_version = kwargs["backend"]["armnn-tflite-delegate"][
- "version"
- ]
+ self.armnn_tflite_delegate_version = self.backend_config[
+ "armnn-tflite-delegate"
+ ]["version"]
def verify(self) -> None:
"""Check the parameters."""