From 394361575bd3fdcd1f9ddc6cff631a2da698fae9 Mon Sep 17 00:00:00 2001 From: Ciara Sookarry Date: Tue, 31 Oct 2023 15:44:41 +0000 Subject: IVGCVSW-8112: Print caught exceptions to console in the delegate Signed-off-by: Ciara Sookarry Change-Id: I16ef18a4d4afce0ae17c98cfb5267f51b7708539 --- delegate/classic/src/armnn_delegate.cpp | 3 +++ delegate/opaque/src/armnn_delegate.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/delegate/classic/src/armnn_delegate.cpp b/delegate/classic/src/armnn_delegate.cpp index 6054de5c5e..9861a11bfe 100644 --- a/delegate/classic/src/armnn_delegate.cpp +++ b/delegate/classic/src/armnn_delegate.cpp @@ -220,6 +220,9 @@ TfLiteIntArray* Delegate::IdentifyOperatorsToDelegate(TfLiteContext* tfLiteConte { ARMNN_LOG(error) << "ArmNN Failed to visit node with error: " << ex.what(); visitStatus = kTfLiteError; + TF_LITE_KERNEL_LOG(tfLiteContext, + "Exception text: %s", + ex.what()); } if ( visitStatus != kTfLiteOk) diff --git a/delegate/opaque/src/armnn_delegate.cpp b/delegate/opaque/src/armnn_delegate.cpp index 129bc4333b..2340e4910e 100644 --- a/delegate/opaque/src/armnn_delegate.cpp +++ b/delegate/opaque/src/armnn_delegate.cpp @@ -333,6 +333,9 @@ TfLiteIntArray* ArmnnOpaqueDelegate::IdentifyOperatorsToDelegate(TfLiteOpaqueCon { ARMNN_LOG(error) << "ArmNN Failed to visit node with error: " << ex.what(); visitStatus = kTfLiteError; + TF_LITE_OPAQUE_KERNEL_LOG(tfLiteContext, + "Exception text: %s", + ex.what()); } if (visitStatus != kTfLiteOk) -- cgit v1.2.1