aboutsummaryrefslogtreecommitdiff
path: root/tests/TfLiteYoloV3Big-Armnn
diff options
context:
space:
mode:
authorPavel Macenauer <pavel.macenauer@linaro.org>2020-05-26 10:54:22 +0000
committerDerek Lamberti <derek.lamberti@arm.com>2020-05-27 12:19:00 +0000
commit855a47b1b0a78c839a674cc1e61d0668b8c4e349 (patch)
tree946e6e78ad98fd84fc9e43aabf508debb321b43d /tests/TfLiteYoloV3Big-Armnn
parent12239e7291fb04b862e44045be0a4feb7751af62 (diff)
downloadarmnn-855a47b1b0a78c839a674cc1e61d0668b8c4e349.tar.gz
Catch exceptions by const reference
Change-Id: I4b4d8ae419dfb8470e8937e75cd3bab85f03b935 Signed-off-by: Pavel Macenauer <pavel.macenauer@nxp.com>
Diffstat (limited to 'tests/TfLiteYoloV3Big-Armnn')
-rw-r--r--tests/TfLiteYoloV3Big-Armnn/TfLiteYoloV3Big-Armnn.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/TfLiteYoloV3Big-Armnn/TfLiteYoloV3Big-Armnn.cpp b/tests/TfLiteYoloV3Big-Armnn/TfLiteYoloV3Big-Armnn.cpp
index c96d1f28d0..1905e9002d 100644
--- a/tests/TfLiteYoloV3Big-Armnn/TfLiteYoloV3Big-Armnn.cpp
+++ b/tests/TfLiteYoloV3Big-Armnn/TfLiteYoloV3Big-Armnn.cpp
@@ -28,17 +28,17 @@ static const int LOAD_NETWORK_ERROR = -4;
static const int LOAD_IMAGE_ERROR = -5;
static const int GENERAL_ERROR = -100;
-#define CHECK_OK(v) \
- do { \
- try { \
- auto r_local = v; \
- if (r_local != 0) { return r_local;} \
- } \
- catch(armnn::Exception e) \
- { \
- ARMNN_LOG(error) << "Oops: " << e.what(); \
- return GENERAL_ERROR; \
- } \
+#define CHECK_OK(v) \
+ do { \
+ try { \
+ auto r_local = v; \
+ if (r_local != 0) { return r_local;} \
+ } \
+ catch (const armnn::Exception& e) \
+ { \
+ ARMNN_LOG(error) << "Oops: " << e.what(); \
+ return GENERAL_ERROR; \
+ } \
} while(0)