ArmNN
 24.02
ClTransposeConvolution2dWorkload.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 <armnn/Tensor.hpp>
9 #include <armnn/Descriptors.hpp>
10 
11 #include "ClBaseWorkload.hpp"
12 
13 #include <arm_compute/runtime/CL/functions/CLDeconvolutionLayer.h>
14 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
15 
16 #include <memory>
17 
18 namespace armnn
19 {
20 
22  const TensorInfo& output,
23  const TransposeConvolution2dDescriptor& descriptor,
24  const TensorInfo& weights,
25  const Optional<TensorInfo>& biases);
26 
27 class ClTransposeConvolution2dWorkload : public ClBaseWorkload<TransposeConvolution2dQueueDescriptor>
28 {
29 public:
31  const WorkloadInfo& info,
32  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
33  const arm_compute::CLCompileContext& clCompileContext);
34 
35  void Execute() const override;
36 
37 private:
38  mutable arm_compute::CLDeconvolutionLayer m_Layer;
39 
40  std::unique_ptr<arm_compute::CLTensor> m_WeightsTensor;
41  std::unique_ptr<arm_compute::CLTensor> m_BiasesTensor;
42 
43  void FreeUnusedTensors();
44 };
45 
46 } // namespace armnn
47 
Descriptors.hpp
armnn::ClTransposeConvolution2dWorkloadValidate
arm_compute::Status ClTransposeConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases)
Definition: ClTransposeConvolution2dWorkload.cpp:26
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClTransposeConvolution2dWorkload::Execute
void Execute() const override
Definition: ClTransposeConvolution2dWorkload.cpp:120
armnn::ClTransposeConvolution2dWorkload
Definition: ClTransposeConvolution2dWorkload.hpp:27
armnn::ClTransposeConvolution2dWorkload::ClTransposeConvolution2dWorkload
ClTransposeConvolution2dWorkload(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClTransposeConvolution2dWorkload.cpp:56
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::TransposeConvolution2dQueueDescriptor
Definition: WorkloadData.hpp:544
Tensor.hpp
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp