aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiara Sookarry <ciara.sookarry@arm.com>2023-10-31 15:44:41 +0000
committerCiara Sookarry <ciara.sookarry@arm.com>2023-11-01 12:00:01 +0000
commit394361575bd3fdcd1f9ddc6cff631a2da698fae9 (patch)
tree2f4e3fb0132a4b0b8a7476fa84c78bf1699e2510
parent8f1f2cf374327b8b5b56a7163542840ad0bae6dd (diff)
downloadarmnn-394361575bd3fdcd1f9ddc6cff631a2da698fae9.tar.gz
IVGCVSW-8112: Print caught exceptions to console in the delegate
Signed-off-by: Ciara Sookarry <ciara.sookarry@arm.com> Change-Id: I16ef18a4d4afce0ae17c98cfb5267f51b7708539
-rw-r--r--delegate/classic/src/armnn_delegate.cpp3
-rw-r--r--delegate/opaque/src/armnn_delegate.cpp3
2 files changed, 6 insertions, 0 deletions
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)