From 3ca9786fe8ed00ad03963cae6a9eef7bb2fe630e Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Mon, 23 Apr 2018 08:20:04 +0100 Subject: COMPMID-718 : Winograd: add validate method and tests Validate methods added to Winograd kernels and function. Renamed validation test suit Change-Id: I0a88df436aff0bbaf4fd82213eeda089b87ac5bf Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127781 Tested-by: Jenkins Reviewed-by: Anthony Barbier Reviewed-by: Georgios Pinitas --- arm_compute/core/Error.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/core/Error.h') diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index 590da9b58e..3635e93244 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -175,6 +175,16 @@ Status create_error(ErrorCode error_code, const char *function, const char *file */ #define ARM_COMPUTE_CREATE_ERROR_LOC(error_code, func, file, line, ...) ::arm_compute::create_error(error_code, func, file, line, __VA_ARGS__) // NOLINT +/** An error is returned with the given description. + * + * @param[in] ... Error description message. + */ +#define ARM_COMPUTE_RETURN_ERROR_MSG(...) \ + do \ + { \ + return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, __VA_ARGS__); \ + } while(false) + /** Checks if a status contains an error and returns it * * @param[in] status Status value to check -- cgit v1.2.1