ArmNN
 24.08
RefTransposeConvolution2dWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "Decoders.hpp"
9 #include "Encoders.hpp"
10 
12 #include "RefBaseWorkload.hpp"
13 
14 namespace armnn
15 {
16 
17 class RefTransposeConvolution2dWorkload : public RefBaseWorkload<TransposeConvolution2dQueueDescriptor>
18 {
19 public:
21  const WorkloadInfo& info);
23 
24  void Execute() const override;
25  void ExecuteAsync(ExecutionData& executionData) override;
26 
27 private:
28  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
29  std::unique_ptr<ScopedTensorHandle> m_Weights;
30  std::unique_ptr<ScopedTensorHandle> m_Biases;
31 
32  std::unique_ptr<Decoder<float>> m_WeightsDecoder;
33  std::unique_ptr<Decoder<float>> m_BiasesDecoder;
34 
35  TensorShape m_WeightsShape;
36 };
37 
38 } // namespace armnn
armnn::RefTransposeConvolution2dWorkload::~RefTransposeConvolution2dWorkload
~RefTransposeConvolution2dWorkload()=default
armnn::TensorShape
Definition: Tensor.hpp:20
armnn::RefTransposeConvolution2dWorkload::Execute
void Execute() const override
Definition: RefTransposeConvolution2dWorkload.cpp:36
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::TransposeConvolution2dQueueDescriptor
Definition: WorkloadData.hpp:544
armnn::RefTransposeConvolution2dWorkload
Definition: RefTransposeConvolution2dWorkload.hpp:17
TensorHandle.hpp
armnn::RefTransposeConvolution2dWorkload::RefTransposeConvolution2dWorkload
RefTransposeConvolution2dWorkload(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: RefTransposeConvolution2dWorkload.cpp:16
Decoders.hpp
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
RefBaseWorkload.hpp
armnn::RefTransposeConvolution2dWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition: RefTransposeConvolution2dWorkload.cpp:41
Encoders.hpp
armnn::RefBaseWorkload
Definition: RefBaseWorkload.hpp:13
armnn::experimental::ExecutionData
Definition: ExecutionData.hpp:14