Validate the configuration against VGF-supported TOSA profiles.
(self)
| 43 | self._validate() |
| 44 | |
| 45 | def _validate(self): |
| 46 | """Validate the configuration against VGF-supported TOSA profiles.""" |
| 47 | tosa_version = self.tosa_spec.version # type: ignore[attr-defined] |
| 48 | tosa_profiles = self.tosa_spec.profiles # type: ignore[attr-defined] |
| 49 | |
| 50 | if tosa_version.major != 1: |
| 51 | raise ValueError( |
| 52 | "Arm backend only supports converter-backend for TOSA version 1. " |
| 53 | f"Invalid TOSA version: {tosa_version}" |
| 54 | ) |
| 55 | |
| 56 | if "FP" not in tosa_profiles and "INT" not in tosa_profiles: |
| 57 | raise ValueError( |
| 58 | "Arm backend only supports converter-backend for FP and/or INT. " |
| 59 | f"Invalid TOSA profile: {tosa_profiles}" |
| 60 | ) |
| 61 | |
| 62 | @classmethod |
| 63 | def _get_output_format(cls) -> str: |
no outgoing calls