ArmNN
 20.05
ClDepthwiseConvolutionWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
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 
23 class ClDepthwiseConvolutionWorkload : public BaseWorkload<DepthwiseConvolution2dQueueDescriptor>
24 {
25 public:
27 
29  const WorkloadInfo& info);
30 
31  void Execute() const override;
32 
33 protected:
34  std::unique_ptr<arm_compute::IFunction> m_DepthwiseConvolutionLayer;
35 
36  std::unique_ptr<arm_compute::CLTensor> m_KernelTensor;
37  std::unique_ptr<arm_compute::CLTensor> m_BiasTensor;
38 
39  void FreeUnusedTensors();
40 };
41 
42 } //namespace armnn
std::unique_ptr< arm_compute::IFunction > m_DepthwiseConvolutionLayer
std::unique_ptr< arm_compute::CLTensor > m_BiasTensor
Copyright (c) 2020 ARM Limited.
ClDepthwiseConvolutionWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
Status
enumeration
Definition: Types.hpp:26
std::unique_ptr< arm_compute::CLTensor > m_KernelTensor
arm_compute::Status ClDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases)
Contains information about inputs and outputs to a layer.