ArmNN
 24.08
ClMaximumWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 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 arm_compute::Status ClMaximumWorkloadValidate(const TensorInfo& input0,
16  const TensorInfo& input1,
17  const TensorInfo& output);
18 
19 class ClMaximumWorkload : public ClBaseWorkload<MaximumQueueDescriptor>
20 {
21 public:
22  ClMaximumWorkload(const MaximumQueueDescriptor& descriptor,
23  const WorkloadInfo& info,
24  const arm_compute::CLCompileContext& clCompileContext);
25  void Execute() const override;
26 
27 private:
28  mutable arm_compute::CLElementwiseMax m_MaximumLayer;
29 };
30 
31 } //namespace armnn
armnn::MaximumQueueDescriptor
Definition: WorkloadData.hpp:282
armnn::ClMaximumWorkloadValidate
arm_compute::Status ClMaximumWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output)
Definition: ClMaximumWorkload.cpp:24
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClMaximumWorkload
Definition: ClMaximumWorkload.hpp:19
armnn::ClMaximumWorkload::Execute
void Execute() const override
Definition: ClMaximumWorkload.cpp:56
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::ClMaximumWorkload::ClMaximumWorkload
ClMaximumWorkload(const MaximumQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClMaximumWorkload.cpp:39
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp