blob: d46b1078b4553f5f18ae794637fb24899744b45b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""Cortex-A tools module."""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
@dataclass
class Operator:
"""Cortex-A compatibility information of the operator."""
name: str
location: str
is_cortex_a_compatible: bool
@dataclass
class CortexACompatibilityInfo:
"""Model's operators."""
cortex_a_compatible: bool
operators: list[Operator] | None = None
def get_cortex_a_compatibility_info(
_model_path: Path,
) -> CortexACompatibilityInfo | None:
"""Return list of model's operators."""
return None
def report() -> None:
"""Generate supported operators report."""
raise Exception(
"Generating a supported operators report is not "
"currently supported with Cortex-A target profile."
)
|