aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp
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/runtime/CL/functions/CLElementWiseUnaryLayer.cpp
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/runtime/CL/functions/CLElementWiseUnaryLayer.cpp')
-rw-r--r--src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp b/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp
index 67ffec8991..c3e472d11b 100644
--- a/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp
+++ b/src/runtime/CL/functions/CLElementWiseUnaryLayer.cpp
@@ -63,4 +63,15 @@ Status CLNegLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::NEG);
}
+void CLSinLayer::configure(const ICLTensor *input, ICLTensor *output)
+{
+ auto k = arm_compute::support::cpp14::make_unique<CLElementWiseUnaryLayerKernel>();
+ k->configure(input, output, ElementWiseUnary::SIN);
+ _kernel = std::move(k);
+}
+Status CLSinLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
+{
+ return CLElementWiseUnaryLayerKernel::validate(input, output, ElementWiseUnary::SIN);
+}
+
} // namespace arm_compute