From 0af4418f4d4b6bceaea64fa21eaf127b1b8fed35 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 17 May 2019 14:04:47 +0100 Subject: COMPMID-2282: Implement SIN operator for CL Change-Id: I9f67d2b0ccfddaecb0f26bab2b04b87212495502 Reviewed-on: https://review.mlplatform.org/c/1156 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') diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h index 37da3b1405..7837b085fa 100644 --- a/tests/validation/fixtures/ElementWiseUnaryFixture.h +++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h @@ -98,6 +98,12 @@ protected: library->fill(tensor, distribution, i); break; } + case ElementWiseUnary::SIN: + { + std::uniform_real_distribution<> distribution(100.0f, -100.0f); + library->fill(tensor, distribution, i); + break; + } default: ARM_COMPUTE_ERROR("Not implemented"); } @@ -202,6 +208,17 @@ public: ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::ABS); } }; + +template +class SinValidationFixture : public ElementWiseUnaryValidationFixture +{ +public: + template + void setup(const TensorShape &shape, DataType data_type) + { + ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::SIN); + } +}; } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1