ArmNN
 24.08
ClPooling2dWorkload.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/CLPoolingLayer.h>
11 
12 namespace armnn
13 {
14 
15 arm_compute::Status ClPooling2dWorkloadValidate(const TensorInfo& input,
16  const TensorInfo& output,
17  const Pooling2dDescriptor& descriptor);
18 
19 class ClPooling2dWorkload : public ClBaseWorkload<Pooling2dQueueDescriptor>
20 {
21 public:
23 
25  const WorkloadInfo& info,
26  const arm_compute::CLCompileContext& clCompileContext);
27 
28  void Execute() const override;
29 
30 private:
31  mutable arm_compute::CLPoolingLayer m_PoolingLayer;
32 };
33 
34 } //namespace armnn
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::BaseWorkload
Definition: Workload.hpp:33
armnn::Pooling2dQueueDescriptor
Definition: WorkloadData.hpp:197
armnn::ClPooling2dWorkloadValidate
arm_compute::Status ClPooling2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor)
Definition: ClPooling2dWorkload.cpp:18
armnn::Status
Status
Definition: Types.hpp:42
armnn::ClPooling2dWorkload::Execute
void Execute() const override
Definition: ClPooling2dWorkload.cpp:65
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ClPooling2dWorkload
Definition: ClPooling2dWorkload.hpp:19
ClBaseWorkload.hpp
armnn::ClPooling2dWorkload::ClPooling2dWorkload
ClPooling2dWorkload(const Pooling2dQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClPooling2dWorkload.cpp:30
armnnDeserializer::Pooling2dDescriptor
const armnnSerializer::Pooling2dDescriptor * Pooling2dDescriptor
Definition: Deserializer.hpp:21