aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/target/cortex_a
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/target/cortex_a')
-rw-r--r--src/mlia/target/cortex_a/advisor.py4
-rw-r--r--src/mlia/target/cortex_a/operators.py2
-rw-r--r--src/mlia/target/cortex_a/reporters.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mlia/target/cortex_a/advisor.py b/src/mlia/target/cortex_a/advisor.py
index 3c127ec..db07b96 100644
--- a/src/mlia/target/cortex_a/advisor.py
+++ b/src/mlia/target/cortex_a/advisor.py
@@ -45,12 +45,12 @@ class CortexAInferenceAdvisor(DefaultInferenceAdvisor):
collectors.append(CortexAOperatorCompatibility(model, target_config))
if context.category_enabled(AdviceCategory.PERFORMANCE):
- raise Exception(
+ raise RuntimeError(
"Performance estimation is currently not supported for Cortex-A."
)
if context.category_enabled(AdviceCategory.OPTIMIZATION):
- raise Exception(
+ raise RuntimeError(
"Model optimizations are currently not supported for Cortex-A."
)
diff --git a/src/mlia/target/cortex_a/operators.py b/src/mlia/target/cortex_a/operators.py
index cd92f31..4a8d992 100644
--- a/src/mlia/target/cortex_a/operators.py
+++ b/src/mlia/target/cortex_a/operators.py
@@ -143,7 +143,7 @@ def get_cortex_a_compatibility_info(
def report() -> None:
"""Generate supported operators report."""
- raise Exception(
+ raise NotImplementedError(
"Generating a supported operators report is not "
"currently supported with Cortex-A target profile."
)
diff --git a/src/mlia/target/cortex_a/reporters.py b/src/mlia/target/cortex_a/reporters.py
index e7247f5..7f4f21b 100644
--- a/src/mlia/target/cortex_a/reporters.py
+++ b/src/mlia/target/cortex_a/reporters.py
@@ -87,4 +87,4 @@ def cortex_a_formatters(data: Any) -> Callable[[Any], Report]:
if isinstance(data, CortexACompatibilityInfo):
return report_cortex_a_operators
- raise Exception(f"Unable to find appropriate formatter for {data}.")
+ raise RuntimeError(f"Unable to find appropriate formatter for {data}.")