blob: cd25be12e716f18da0dfcbad7ebef1cc1ff7301e [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#pragma once
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <backendsCommon/Workload.hpp>
Matthew Bentham14e46692018-09-20 15:35:30 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h>
telsoa01c577f2c2018-08-31 09:22:23 +010011
12namespace armnn
13{
14
Nattapat Chaimanowongcd066ca2018-10-10 12:11:50 +010015class ClAdditionWorkload : public BaseWorkload<AdditionQueueDescriptor>
telsoa01c577f2c2018-08-31 09:22:23 +010016{
17public:
Sadik Armagane9444752020-12-02 11:28:58 +000018 ClAdditionWorkload(const AdditionQueueDescriptor& descriptor,
19 const WorkloadInfo& info,
20 const arm_compute::CLCompileContext& clCompileContext);
telsoa01c577f2c2018-08-31 09:22:23 +010021
22 void Execute() const override;
23
24private:
25 mutable arm_compute::CLArithmeticAddition m_Layer;
26};
27
arovir01085f0a42018-10-08 14:48:19 +010028arm_compute::Status ClAdditionValidate(const TensorInfo& input0,
29 const TensorInfo& input1,
Mike Kelly07810fc2020-11-12 10:58:48 +000030 const TensorInfo& output,
31 const ActivationDescriptor* activationDescriptor = nullptr);
telsoa01c577f2c2018-08-31 09:22:23 +010032} //namespace armnn