ArmNN
 24.02
ClElementwiseBinaryWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
9 
10 #include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h>
11 
12 namespace armnn
13 {
14 
15 class ClElementwiseBinaryWorkload : public ClBaseWorkload<ElementwiseBinaryQueueDescriptor>
16 {
17 public:
19  const WorkloadInfo& info,
20  const arm_compute::CLCompileContext& clCompileContext);
21 
22  void Execute() const override;
23 
24 private:
25  std::unique_ptr<arm_compute::IFunction> m_ElementwiseBinaryLayer;
26 
27 };
28 
30  const TensorInfo& input1,
31  const TensorInfo& output,
32  const ElementwiseBinaryDescriptor& descriptor,
33  const ActivationDescriptor* activationDescriptor = nullptr);
34 } //namespace armnn
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClElementwiseBinaryValidate
arm_compute::Status ClElementwiseBinaryValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ElementwiseBinaryDescriptor &descriptor, const ActivationDescriptor *activationDescriptor)
Definition: ClElementwiseBinaryWorkload.cpp:64
armnn::ClElementwiseBinaryWorkload
Definition: ClElementwiseBinaryWorkload.hpp:15
armnn::ElementwiseBinaryDescriptor
A ElementwiseBinaryDescriptor for the ElementwiseBinaryLayer.
Definition: Descriptors.hpp:109
armnn::ElementwiseBinaryQueueDescriptor
Definition: WorkloadData.hpp:671
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::ClElementwiseBinaryWorkload::ClElementwiseBinaryWorkload
ClElementwiseBinaryWorkload(const ElementwiseBinaryQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClElementwiseBinaryWorkload.cpp:19
armnn::BoostLogSeverityMapping::info
@ info
armnn::ClElementwiseBinaryWorkload::Execute
void Execute() const override
Definition: ClElementwiseBinaryWorkload.cpp:55
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp