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 --- tests/validation/fixtures/ElementWiseUnaryFixture.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/validation/fixtures') diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h index 1658ed00bb..37da3b1405 100644 --- a/tests/validation/fixtures/ElementWiseUnaryFixture.h +++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h @@ -69,6 +69,7 @@ protected: library->fill(tensor, distribution, i); break; } + case ElementWiseUnary::ABS: case ElementWiseUnary::NEG: { switch(data_type) @@ -190,6 +191,17 @@ public: ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::LOG); } }; + +template +class AbsValidationFixture : public ElementWiseUnaryValidationFixture +{ +public: + template + void setup(const TensorShape &shape, DataType data_type) + { + ElementWiseUnaryValidationFixture::setup(shape, data_type, ElementWiseUnary::ABS); + } +}; } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1