From f9d3a0a12ede4db89348fd924274c9acc6809bb2 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 3 Nov 2017 19:01:44 +0000 Subject: COMPMID-617: Add validation functions. Added validation routines to the following kernels. -CLActivationLayer -CLBatchNormalizationLayer -CLArithmeticAddition -CLArithmeticSubtraction -CLPixelwiseMultiplication Change-Id: I0f3a03154f9e392279f715af656683cd0ad4cef5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/94595 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- arm_compute/core/Error.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/Error.h') diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index 6e4aa6a4f8..fa3f9c0615 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -240,7 +240,7 @@ Error create_error(ErrorCode error_code, const char *function, const char *file, * * @param[in] error Error value to check. */ -#define ARM_COMPUTE_ERROR_THROW(error) \ +#define ARM_COMPUTE_ERROR_THROW_ON(error) \ error.throw_if_error(); /** If the condition is true, the given message is printed and an exception is thrown @@ -282,7 +282,7 @@ Error create_error(ErrorCode error_code, const char *function, const char *file, */ #define ARM_COMPUTE_CONST_ON_ERROR(cond, val, msg) (cond) ? throw std::logic_error(msg) : val; #else /* ARM_COMPUTE_ASSERTS_ENABLED */ -#define ARM_COMPUTE_ERROR_THROW(error) +#define ARM_COMPUTE_ERROR_THROW_ON(error) #define ARM_COMPUTE_ERROR_ON_MSG(cond, ...) #define ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, ...) #define ARM_COMPUTE_CONST_ON_ERROR(cond, val, msg) val -- cgit v1.2.1