From 6ac5992dc81534e81482892f8fb8c03790c57192 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Wed, 15 May 2019 14:06:02 +0100 Subject: COMPMID-2254 Implement NEAbsLayer Change-Id: I88571010d727b2ac8d9fd3838a4d170cf66bf0ce Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/1150 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Giuseppe Rossini --- .../runtime/NEON/functions/NEElementwiseUnaryLayer.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h') diff --git a/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h b/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h index cce2837a8d..bea9145b80 100644 --- a/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h +++ b/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h @@ -109,5 +109,25 @@ public: */ static Status validate(const ITensorInfo *input, const ITensorInfo *output); }; + +/** Basic function to compute the absolute value of an input tensor. */ +class NEAbsLayer : public INESimpleFunction +{ +public: + /** Initialize the function + * + * @param[in] input Input tensor. Data types supported: F16/F32/S32. + * @param[out] output Output tensor. Data types supported: same as @p input. + */ + void configure(const ITensor *input, ITensor *output); + /** Static function to check if given info will lead to a valid configuration of @ref NEAbsLayer + * + * @param[in] input First tensor input info. Data types supported: F16/F32/S32. + * @param[in] output Output tensor info. Data types supported: Same as @p input. + * + * @return a status + */ + static Status validate(const ITensorInfo *input, const ITensorInfo *output); +}; } // namespace arm_compute #endif /* __ARM_COMPUTE_NEELEMENTWISEUNARYLAYER_H__ */ -- cgit v1.2.1