aboutsummaryrefslogtreecommitdiff
path: root/tests/test_target_cortex_a_advisor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_target_cortex_a_advisor.py')
-rw-r--r--tests/test_target_cortex_a_advisor.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/tests/test_target_cortex_a_advisor.py b/tests/test_target_cortex_a_advisor.py
index 9e0082f..6e370d6 100644
--- a/tests/test_target_cortex_a_advisor.py
+++ b/tests/test_target_cortex_a_advisor.py
@@ -31,7 +31,23 @@ def test_configure_and_get_cortex_a_advisor(test_tflite_model: Path) -> None:
"cortex_a_inference_advisor": {
"model": str(test_tflite_model),
"target_profile": "cortex-a",
- }
+ },
+ "common_optimizations": {
+ "optimizations": [
+ [
+ {
+ "layers_to_optimize": None,
+ "optimization_target": 0.5,
+ "optimization_type": "pruning",
+ },
+ {
+ "layers_to_optimize": None,
+ "optimization_target": 32,
+ "optimization_type": "clustering",
+ },
+ ]
+ ]
+ },
}
assert isinstance(workflow, DefaultWorkflowExecutor)
@@ -43,11 +59,7 @@ def test_configure_and_get_cortex_a_advisor(test_tflite_model: Path) -> None:
[
AdviceCategory.PERFORMANCE,
"Performance estimation is currently not supported for Cortex-A.",
- ],
- [
- AdviceCategory.OPTIMIZATION,
- "Model optimizations are currently not supported for Cortex-A.",
- ],
+ ]
],
)
def test_unsupported_advice_categories(