ArmNN
 24.02
ClDepthwiseConvolutionWorkload.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/IFunction.h>
11 #include <arm_compute/core/Error.h>
12 #include <arm_compute/runtime/CL/CLTensor.h>
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const DepthwiseConvolution2dDescriptor& descriptor,
20  const TensorInfo& weights,
21  const Optional<TensorInfo>& biases,
22  const ActivationDescriptor* activationDescriptor = nullptr);
23 
24 class ClDepthwiseConvolutionWorkload : public ClBaseWorkload<DepthwiseConvolution2dQueueDescriptor>
25 {
26 public:
28 
30  const WorkloadInfo& info,
31  const arm_compute::CLCompileContext& clCompileContext);
32 
33  void Execute() const override;
34 
35 protected:
36  std::unique_ptr<arm_compute::IFunction> m_DepthwiseConvolutionLayer;
37 };
38 
39 } //namespace armnn
armnn::ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload
ClDepthwiseConvolutionWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClDepthwiseConvolutionWorkload.cpp:86
armnn::ClDepthwiseConvolutionWorkload::Execute
void Execute() const override
Definition: ClDepthwiseConvolutionWorkload.cpp:158
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::ClDepthwiseConvolutionWorkload
Definition: ClDepthwiseConvolutionWorkload.hpp:24
armnn::BoostLogSeverityMapping::info
@ info
armnn::ClDepthwiseConvolutionWorkload::m_DepthwiseConvolutionLayer
std::unique_ptr< arm_compute::IFunction > m_DepthwiseConvolutionLayer
Definition: ClDepthwiseConvolutionWorkload.hpp:36
armnn::BaseWorkload
Definition: Workload.hpp:33
armnn::DepthwiseConvolution2dQueueDescriptor
Depthwise Convolution 2D layer workload data.
Definition: WorkloadData.hpp:234
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp
armnn::ClDepthwiseConvolutionWorkloadValidate
arm_compute::Status ClDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, const ActivationDescriptor *activationDescriptor)
Definition: ClDepthwiseConvolutionWorkload.cpp:26