From edf436c48029aa4e2b4ca5d17eee5a8f07ecbd6f Mon Sep 17 00:00:00 2001 From: Dhruv Chauhan Date: Mon, 20 Mar 2023 10:22:08 +0000 Subject: MLIA-711 Extend TensorFlow Lite Compatibility Check - Unify the TensorFlow Lite compatibility check across Cortex-A, TOSA and Ethos-U targets - Display tables/messages with parsed information - Do not display raw TensorFlow Lite errors, and return with exit code 0 Change-Id: I9333fdb6cbe592f1ed7395d392412168492a1479 --- src/mlia/target/ethos_u/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mlia/target/ethos_u/handlers.py') diff --git a/src/mlia/target/ethos_u/handlers.py b/src/mlia/target/ethos_u/handlers.py index b9c89e8..1b15c55 100644 --- a/src/mlia/target/ethos_u/handlers.py +++ b/src/mlia/target/ethos_u/handlers.py @@ -8,6 +8,7 @@ import logging from mlia.backend.vela.compat import Operators from mlia.core.events import CollectedDataEvent from mlia.core.handlers import WorkflowEventsHandler +from mlia.nn.tensorflow.tflite_compat import TFLiteCompatibilityInfo from mlia.target.ethos_u.events import EthosUAdvisorEventHandler from mlia.target.ethos_u.events import EthosUAdvisorStartedEvent from mlia.target.ethos_u.performance import OptimizationPerformanceMetrics @@ -49,6 +50,9 @@ class EthosUEventHandler(WorkflowEventsHandler, EthosUAdvisorEventHandler): space=True, ) + if isinstance(data_item, TFLiteCompatibilityInfo) and not data_item.compatible: + self.reporter.submit(data_item, delay_print=True) + def on_ethos_u_advisor_started(self, event: EthosUAdvisorStartedEvent) -> None: """Handle EthosUAdvisorStarted event.""" self.reporter.submit(event.target_config) -- cgit v1.2.1