From 754e9526a7caf50876c2db9563dc72f096093b34 Mon Sep 17 00:00:00 2001 From: Ioan-Cristian Szabo Date: Tue, 28 Nov 2017 18:29:43 +0000 Subject: COMPMID-617: Add validate support for NEON PixelWiseMultiplication Change-Id: Ie81a4d667146315fed7668cf2ca752d3bf49b0ab Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/111013 Reviewed-by: Anthony Barbier Reviewed-by: Michalis Spyrou Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com --- .../runtime/NEON/functions/NEPixelWiseMultiplication.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h') diff --git a/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h b/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h index de7a797cd8..a788dcdd66 100644 --- a/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h +++ b/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h @@ -45,6 +45,18 @@ public: * @param[in] rounding_policy Rounding policy. */ void configure(const ITensor *input1, const ITensor *input2, ITensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy); + /** Static function to check if given info will lead to a valid configuration of @ref NEPixelWiseMultiplication + * + * @param[in] input1 First tensor info input. Data types supported: U8/QS8/S16/F32. + * @param[in] input2 Second tensor info input. Data types supported: U8/QS8/S16/F32. + * @param[in] output Output tensor info. Data types supported: U8/QS8/S16/F32. + * @param[in] scale Scale to apply after multiplication. Must be positive. + * @param[in] overflow_policy Overflow policy. + * @param[in] rounding_policy Rounding policy. + * + * @return an error status + */ + static Error validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy); }; } #endif /*__ARM_COMPUTE_NEPIXELWISEMULTIPLICATION_H__ */ -- cgit v1.2.1