blob: 826e719d25369e88b29ebcf0665d5b0d5a46c8d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# SPDX-FileCopyrightText: Copyright 2022-2023, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""TOSA target configuration."""
from typing import Any
from mlia.target.config import TargetProfile
class TOSAConfiguration(TargetProfile):
"""TOSA configuration."""
def __init__(self, **kwargs: Any) -> None:
"""Init configuration."""
target = kwargs["target"]
super().__init__(target)
def verify(self) -> None:
"""Check the parameters."""
super().verify()
if self.target != "tosa":
raise ValueError(f"Wrong target {self.target} for TOSA configuration.")
|