• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <backendsCommon/Workload.hpp>
9 
10 #include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h>
11 
12 namespace armnn
13 {
14 
15 class ClAdditionWorkload : public BaseWorkload<AdditionQueueDescriptor>
16 {
17 public:
18     ClAdditionWorkload(const AdditionQueueDescriptor& descriptor, const WorkloadInfo& info);
19 
20     void Execute() const override;
21 
22 private:
23     mutable arm_compute::CLArithmeticAddition m_Layer;
24 };
25 
26 arm_compute::Status ClAdditionValidate(const TensorInfo& input0,
27                                        const TensorInfo& input1,
28                                        const TensorInfo& output,
29                                        const ActivationDescriptor* activationDescriptor = nullptr);
30 } //namespace armnn
31