ArmNN
 20.11
ClTransposeConvolution2dWorkload.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 
8 #include <armnn/Tensor.hpp>
9 #include <armnn/Descriptors.hpp>
10 
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 BaseWorkload<TransposeConvolution2dQueueDescriptor>
28 {
29 public:
31  const WorkloadInfo& info,
32  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
33 
34  void Execute() const override;
35 
36 private:
37  mutable arm_compute::CLDeconvolutionLayer m_Layer;
38 
39  std::unique_ptr<arm_compute::CLTensor> m_WeightsTensor;
40  std::unique_ptr<arm_compute::CLTensor> m_BiasesTensor;
41 
42  void FreeUnusedTensors();
43 };
44 
45 } // namespace armnn
46 
Copyright (c) 2020 ARM Limited.
Status
enumeration
Definition: Types.hpp:26
ClTransposeConvolution2dWorkload(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
Contains information about inputs and outputs to a layer.
arm_compute::Status ClTransposeConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases)