aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/elementwise_unary.cl
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-05-17 14:04:47 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-05-20 11:47:29 +0000
commit0af4418f4d4b6bceaea64fa21eaf127b1b8fed35 (patch)
treee8bb9a755182419752e014aecdef2bfc78ed0f0a /src/core/CL/cl_kernels/elementwise_unary.cl
parent3db1ba9938986e7096184ad22020a71775075d03 (diff)
downloadComputeLibrary-0af4418f4d4b6bceaea64fa21eaf127b1b8fed35.tar.gz
COMPMID-2282: Implement SIN operator for CL
Change-Id: I9f67d2b0ccfddaecb0f26bab2b04b87212495502 Reviewed-on: https://review.mlplatform.org/c/1156 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/elementwise_unary.cl')
-rw-r--r--src/core/CL/cl_kernels/elementwise_unary.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/CL/cl_kernels/elementwise_unary.cl b/src/core/CL/cl_kernels/elementwise_unary.cl
index 2650654e4a..14d6f5dbe1 100644
--- a/src/core/CL/cl_kernels/elementwise_unary.cl
+++ b/src/core/CL/cl_kernels/elementwise_unary.cl
@@ -32,6 +32,8 @@
#define inverse_sqrt(input) rsqrt(input)
// Calculate negative
#define neg(input) (-input)
+// Calculate sine
+#define sine(input) sin(input)
/** Applies element wise unary operator in a tensor.
*