From 0a5a57a3f794de851408bae1c63b1660b4c5cbe7 Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Thu, 23 May 2019 14:20:33 +0100 Subject: COMPMID-2160: Implement Round for NEON Change-Id: Ie80e2ad294eaf95bc823d979842c320e8fb41f67 Signed-off-by: Usama Arif Reviewed-on: https://review.mlplatform.org/c/1215 Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- tests/validation/fixtures/ElementWiseUnaryFixture.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/validation/fixtures/ElementWiseUnaryFixture.h') diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h index 7837b085fa..fd66f630ba 100644 --- a/tests/validation/fixtures/ElementWiseUnaryFixture.h +++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h @@ -104,6 +104,12 @@ protected: library->fill(tensor, distribution, i); break; } + case ElementWiseUnary::ROUND: + { + std::uniform_real_distribution<> distribution(100.0f, -100.0f); + library->fill(tensor, distribution, i); + break; + } default: ARM_COMPUTE_ERROR("Not implemented"); } @@ -219,6 +225,17 @@ public: ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::SIN); } }; + +template +class RoundValidationFixture : public ElementWiseUnaryValidationFixture +{ +public: + template + void setup(const TensorShape &shape, DataType data_type) + { + ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::ROUND); + } +}; } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1