diff options
author | Usama Arif <usama.arif@arm.com> | 2019-05-13 16:26:29 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2019-05-14 16:17:37 +0000 |
commit | c255aa7df3e61a73cc4af86d21d3b1848653b7a9 (patch) | |
tree | 98f4b899c8be56f38b13eaf11f636bc92173719d /tests/validation/fixtures/ElementWiseUnaryFixture.h | |
parent | 4b5c588ed5bbf635bfb4d20b662db417caa4558f (diff) | |
download | ComputeLibrary-c255aa7df3e61a73cc4af86d21d3b1848653b7a9.tar.gz |
COMPMID-2263: Implement NELogLayer
Change-Id: Ie2ae8f7a0b1803dae42873201cb643c71b26129f
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1122
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/ElementWiseUnaryFixture.h')
-rw-r--r-- | tests/validation/fixtures/ElementWiseUnaryFixture.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h index ba131630a3..1658ed00bb 100644 --- a/tests/validation/fixtures/ElementWiseUnaryFixture.h +++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h @@ -91,6 +91,12 @@ protected: } break; } + case ElementWiseUnary::LOG: + { + std::uniform_real_distribution<> distribution(0.0000001f, 100.0f); + library->fill(tensor, distribution, i); + break; + } default: ARM_COMPUTE_ERROR("Not implemented"); } @@ -173,6 +179,17 @@ public: ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::NEG); } }; + +template <typename TensorType, typename AccessorType, typename FunctionType, typename T> +class LogValidationFixture : 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::LOG); + } +}; } // namespace validation } // namespace test } // namespace arm_compute |