diff options
author | Usama Arif <usama.arif@arm.com> | 2019-05-14 10:22:36 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2019-05-15 17:09:25 +0000 |
commit | 52c54f61b97bcedab309bfa761e193939e12e739 (patch) | |
tree | e99186abb3c6a69ef26b17e8fb57817ee56efe53 /src/runtime/CL | |
parent | eb312ef6c20e8548c43eb9d4a3edf7265bc6777b (diff) | |
download | ComputeLibrary-52c54f61b97bcedab309bfa761e193939e12e739.tar.gz |
COMPMID-2270: Implement POW operator for CL
Change-Id: Id14ecdc62439d90eb247bb75990d6593637cb42e
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1129
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/CL')
-rw-r--r-- | src/runtime/CL/functions/CLElementwiseOperations.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/runtime/CL/functions/CLElementwiseOperations.cpp b/src/runtime/CL/functions/CLElementwiseOperations.cpp index 28f4b13f22..15de56d24a 100644 --- a/src/runtime/CL/functions/CLElementwiseOperations.cpp +++ b/src/runtime/CL/functions/CLElementwiseOperations.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -124,4 +124,18 @@ Status CLElementwiseSquaredDiff::validate(const ITensorInfo *input1, const ITens { return CLArithmeticOperationKernel::validate(ArithmeticOperation::SQUARED_DIFF, input1, input2, output); } + +void CLElementwisePower::configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique<CLArithmeticOperationKernel>(); + k->configure(ArithmeticOperation::POWER, input1, input2, output); + _kernel = std::move(k); + configure_border_handler(_border_handler, _kernel->border_size(), input1, input2, output); +} + +Status CLElementwisePower::validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output) +{ + return CLArithmeticOperationKernel::validate(ArithmeticOperation::POWER, input1, input2, output); +} + } // namespace arm_compute |