diff options
author | Usama Arif <usama.arif@arm.com> | 2019-05-13 16:26:29 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2019-05-14 16:17:37 +0000 |
commit | c255aa7df3e61a73cc4af86d21d3b1848653b7a9 (patch) | |
tree | 98f4b899c8be56f38b13eaf11f636bc92173719d /arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h | |
parent | 4b5c588ed5bbf635bfb4d20b662db417caa4558f (diff) | |
download | ComputeLibrary-c255aa7df3e61a73cc4af86d21d3b1848653b7a9.tar.gz |
COMPMID-2263: Implement NELogLayer
Change-Id: Ie2ae8f7a0b1803dae42873201cb643c71b26129f
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1122
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h')
-rw-r--r-- | arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h b/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h index f4b7e89889..cce2837a8d 100644 --- a/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h +++ b/arm_compute/runtime/NEON/functions/NEElementwiseUnaryLayer.h @@ -89,5 +89,25 @@ public: */ static Status validate(const ITensorInfo *input, const ITensorInfo *output); }; + +/** Basic function to compute the natural logarithm of an input tensor. */ +class NELogLayer : 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 NELogLayer + * + * @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__ */ |