ArmNN
 24.08
NeonTransposeConvolution2dWorkload.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 "NeonBaseWorkload.hpp"
9 
10 #include <arm_compute/runtime/IFunction.h>
11 #include <arm_compute/runtime/Tensor.h>
12 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
13 
14 #include <arm_compute/runtime/NEON/functions/NEDeconvolutionLayer.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 NeonTransposeConvolution2dWorkload : public NeonBaseWorkload<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  std::unique_ptr<arm_compute::NEDeconvolutionLayer> m_Layer;
38 
39  std::unique_ptr<arm_compute::Tensor> m_KernelTensor;
40  std::unique_ptr<arm_compute::Tensor> m_BiasTensor;
41 
42  void FreeUnusedTensors();
43 };
44 
45 } //namespace armnn
armnn::NeonTransposeConvolution2dWorkload
Definition: NeonTransposeConvolution2dWorkload.hpp:27
NeonBaseWorkload.hpp
armnn::NeonTransposeConvolution2dWorkload::Execute
void Execute() const override
Definition: NeonTransposeConvolution2dWorkload.cpp:112
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::TransposeConvolution2dQueueDescriptor
Definition: WorkloadData.hpp:544
armnn::Status
Status
Definition: Types.hpp:42
armnn::NeonTransposeConvolution2dWorkload::NeonTransposeConvolution2dWorkload
NeonTransposeConvolution2dWorkload(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
Definition: NeonTransposeConvolution2dWorkload.cpp:56
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::NeonBaseWorkload
Definition: NeonBaseWorkload.hpp:13
armnn::NeonTransposeConvolution2dWorkloadValidate
arm_compute::Status NeonTransposeConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases)
Definition: NeonTransposeConvolution2dWorkload.cpp:25