diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2019-05-15 14:06:02 +0100 |
---|---|---|
committer | Manuel Bottini <manuel.bottini@arm.com> | 2019-05-16 15:26:51 +0000 |
commit | 6ac5992dc81534e81482892f8fb8c03790c57192 (patch) | |
tree | 91255fcd0d4d6a37eeb1784ee9bc2303c1ef2f49 /tests/validation/fixtures/ElementWiseUnaryFixture.h | |
parent | 80e55db85bb4842ef287c2732fc98ad869748b0a (diff) | |
download | ComputeLibrary-6ac5992dc81534e81482892f8fb8c03790c57192.tar.gz |
COMPMID-2254
Implement NEAbsLayer
Change-Id: I88571010d727b2ac8d9fd3838a4d170cf66bf0ce
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1150
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'tests/validation/fixtures/ElementWiseUnaryFixture.h')
-rw-r--r-- | tests/validation/fixtures/ElementWiseUnaryFixture.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::LOG); } }; + +template <typename TensorType, typename AccessorType, typename FunctionType, typename T> +class AbsValidationFixture : public ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T> +{ +public: + template <typename...> + void setup(const TensorShape &shape, DataType data_type) + { + ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::ABS); + } +}; } // namespace validation } // namespace test } // namespace arm_compute |