diff options
author | Usama Arif <usama.arif@arm.com> | 2019-05-10 12:06:28 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2019-05-13 09:01:24 +0000 |
commit | f6e475c9a092bc6e0fb53f484fbf2832183a9c44 (patch) | |
tree | a6a5f1cd6b48a8615fd942639d2b52c61d5c46be /tests/validation/reference | |
parent | bcfd09a14a61bb8457555c61e7c5697b1f901ddb (diff) | |
download | ComputeLibrary-f6e475c9a092bc6e0fb53f484fbf2832183a9c44.tar.gz |
COMPMID-2268: Implement NEG for NEON.
Change-Id: I90c023dbea8ea12e9af677294ba576b2bfcc02a4
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/184216
Tested-by: bsgcomp <bsgcomp@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1099
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference')
-rw-r--r-- | tests/validation/reference/ElementWiseUnary.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/validation/reference/ElementWiseUnary.cpp b/tests/validation/reference/ElementWiseUnary.cpp index ae7f256339..79310eae0f 100644 --- a/tests/validation/reference/ElementWiseUnary.cpp +++ b/tests/validation/reference/ElementWiseUnary.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -46,6 +46,9 @@ SimpleTensor<T> elementwise_unary(const SimpleTensor<T> &src, ElementWiseUnary o case ElementWiseUnary::EXP: dst[i] = std::exp(src[i]); break; + case ElementWiseUnary::NEG: + dst[i] = -src[i]; + break; default: ARM_COMPUTE_ERROR("Not implemented"); } @@ -56,6 +59,7 @@ SimpleTensor<T> elementwise_unary(const SimpleTensor<T> &src, ElementWiseUnary o template SimpleTensor<float> elementwise_unary(const SimpleTensor<float> &src, ElementWiseUnary op); template SimpleTensor<half> elementwise_unary(const SimpleTensor<half> &src, ElementWiseUnary op); +template SimpleTensor<int32_t> elementwise_unary(const SimpleTensor<int32_t> &src, ElementWiseUnary op); } // namespace reference } // namespace validation } // namespace test |