diff options
author | David Monahan <david.monahan@arm.com> | 2023-11-10 09:55:33 +0000 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2023-11-10 09:55:33 +0000 |
commit | 8df6bf3f3b8d06b7588c2095fcf5b71c9ab85003 (patch) | |
tree | ba1e1dc098f98fe55b41e39aeb0ff08685383a65 /delegate | |
parent | 5812504a07caf6d3b8d7b5179b34e4f8fb31cdb0 (diff) | |
download | armnn-8df6bf3f3b8d06b7588c2095fcf5b71c9ab85003.tar.gz |
IVGCVSW-7753 Tweak to Opaque delegate exception catching
* Updated the exception catch when calling EnqueueWorkload to also print the exception to std::out when caught. Helps greatly with debugging
Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I8e9dd4d69986543ff33cd91703bb381d4d062b22
Diffstat (limited to 'delegate')
-rw-r--r-- | delegate/opaque/src/armnn_delegate.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/delegate/opaque/src/armnn_delegate.cpp b/delegate/opaque/src/armnn_delegate.cpp index 33a07f244d..54bdf36982 100644 --- a/delegate/opaque/src/armnn_delegate.cpp +++ b/delegate/opaque/src/armnn_delegate.cpp @@ -678,7 +678,10 @@ TfLiteStatus ArmnnSubgraph::Invoke(TfLiteOpaqueContext* tfLiteContext, TfLiteOpa } catch (armnn::InvalidArgumentException& ex) { - ARMNN_LOG(error) << "ArmNN Failed to EnqueueWorkload with error: " << ex.what(); + std::stringstream exMessage; + exMessage << "ArmNN Failed to EnqueueWorkload with error: " << ex.what(); + ARMNN_LOG(error) << exMessage.str(); + TFLITE_LOG_PROD_ONCE(tflite::TFLITE_LOG_INFO, exMessage.str().c_str()); // This should really be kTfLiteDelegateError but the Delegate Test Suite expects kTfLiteError so we return // that instead return kTfLiteError; |