diff options
author | Usama Arif <usama.arif@arm.com> | 2019-05-23 14:20:33 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2019-05-24 16:11:16 +0000 |
commit | 0a5a57a3f794de851408bae1c63b1660b4c5cbe7 (patch) | |
tree | 5d49d85165a3d9fd257c5676691fc5ae24fda4f3 /src/runtime/NEON/functions | |
parent | 43c1bf8e47098d6ab07be5b5e685bda6d8b80344 (diff) | |
download | ComputeLibrary-0a5a57a3f794de851408bae1c63b1660b4c5cbe7.tar.gz |
COMPMID-2160: Implement Round for NEON
Change-Id: Ie80e2ad294eaf95bc823d979842c320e8fb41f67
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1215
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/NEON/functions')
-rw-r--r-- | src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp index 231b8aa445..e4c9101274 100644 --- a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp +++ b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp @@ -85,4 +85,15 @@ Status NEAbsLayer::validate(const ITensorInfo *input, const ITensorInfo *output) return NEElementwiseUnaryKernel::validate(ElementWiseUnary::ABS, input, output); } +void NERoundLayer::configure(const ITensor *input, ITensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique<NEElementwiseUnaryKernel>(); + k->configure(ElementWiseUnary::ROUND, input, output); + _kernel = std::move(k); +} +Status NERoundLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + return NEElementwiseUnaryKernel::validate(ElementWiseUnary::ROUND, input, output); +} + } // namespace arm_compute |