From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ..._1_1_ref_transpose_convolution2d_workload.xhtml | 302 +++++++++++++++++++++ 1 file changed, 302 insertions(+) create mode 100644 20.02/classarmnn_1_1_ref_transpose_convolution2d_workload.xhtml (limited to '20.02/classarmnn_1_1_ref_transpose_convolution2d_workload.xhtml') diff --git a/20.02/classarmnn_1_1_ref_transpose_convolution2d_workload.xhtml b/20.02/classarmnn_1_1_ref_transpose_convolution2d_workload.xhtml new file mode 100644 index 0000000000..c1c3fb5e58 --- /dev/null +++ b/20.02/classarmnn_1_1_ref_transpose_convolution2d_workload.xhtml @@ -0,0 +1,302 @@ + + + + + + + + + + + + + +ArmNN: RefTransposeConvolution2dWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefTransposeConvolution2dWorkload Class Reference
+
+
+ +

#include <RefTransposeConvolution2dWorkload.hpp>

+
+Inheritance diagram for RefTransposeConvolution2dWorkload:
+
+
+ + +BaseWorkload< TransposeConvolution2dQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 RefTransposeConvolution2dWorkload (const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
 ~RefTransposeConvolution2dWorkload ()=default
 
void PostAllocationConfigure () override
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< TransposeConvolution2dQueueDescriptor >
 BaseWorkload (const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const TransposeConvolution2dQueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from BaseWorkload< TransposeConvolution2dQueueDescriptor >
const TransposeConvolution2dQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 17 of file RefTransposeConvolution2dWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefTransposeConvolution2dWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
RefTransposeConvolution2dWorkload (const TransposeConvolution2dQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 16 of file RefTransposeConvolution2dWorkload.cpp.

+ +

References TransposeConvolution2dQueueDescriptor::m_Bias, TransposeConvolution2dDescriptor::m_BiasEnabled, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and TransposeConvolution2dQueueDescriptor::m_Weight.

+
17  :
18  BaseWorkload<TransposeConvolution2dQueueDescriptor>(descriptor, info)
19 {
20  // set up weights decoder
21  m_Weights = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Weight));
22  const TensorInfo& weightsInfo = m_Weights->GetTensorInfo();
23 
24  m_WeightsDecoder = MakeDecoder<float>(weightsInfo, m_Weights->Map(true));
25  m_WeightsShape = weightsInfo.GetShape();
26 
27  // set up biases decoder
28  if (descriptor.m_Parameters.m_BiasEnabled)
29  {
30  m_Biases = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Bias));
31  const TensorInfo& biasesInfo = m_Biases->GetTensorInfo();
32  m_BiasesDecoder = MakeDecoder<float>(biasesInfo, m_Biases->Map(true));
33  }
34 }
+
+
+
+ +

◆ ~RefTransposeConvolution2dWorkload()

+ +
+
+ + + + + +
+ + + + + + + +
~RefTransposeConvolution2dWorkload ()
+
+default
+
+ +
+
+

Member Function Documentation

+ +

◆ Execute()

+ +
+
+ + + + + +
+ + + + + + + +
void Execute () const
+
+overridevirtual
+
+ +

Implements IWorkload.

+ +

Definition at line 53 of file RefTransposeConvolution2dWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT, armnn::CpuRef, BaseWorkload< TransposeConvolution2dQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::TransposeConvolution2dImpl().

+
54 {
55  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefTransposeConvolution2dWorkload_Execute");
56 
57  m_InputDecoder->Reset(m_Data.m_Inputs[0]->Map());
58  m_OutputEncoder->Reset(m_Data.m_Outputs[0]->Map());
59 
61  m_InputShape,
62  *m_InputDecoder,
63  m_OutputShape,
64  *m_OutputEncoder,
65  m_WeightsShape,
66  *m_WeightsDecoder,
67  m_BiasesDecoder.get());
68 }
CPU Execution: Reference C++ kernels.
+
const TransposeConvolution2dQueueDescriptor m_Data
Definition: Workload.hpp:46
+
void TransposeConvolution2dImpl(const TransposeConvolution2dDescriptor &descriptor, const TensorShape &inputShape, Decoder< float > &inputDecoder, const TensorShape &outputShape, Encoder< float > &outputEncoder, const TensorShape &weightsShape, Decoder< float > &weightsDecoder, Decoder< float > *biasesDecoder)
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
+
std::vector< ITensorHandle * > m_Outputs
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+ +

◆ PostAllocationConfigure()

+ +
+
+ + + + + +
+ + + + + + + +
void PostAllocationConfigure ()
+
+overridevirtual
+
+ +

Implements IWorkload.

+ +

Definition at line 36 of file RefTransposeConvolution2dWorkload.cpp.

+ +

References TensorInfo::GetShape(), armnn::GetTensorInfo(), BaseWorkload< TransposeConvolution2dQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, and QueueDescriptor::m_Outputs.

+
37 {
38  // set up input decoder
39  const ITensorHandle* input = m_Data.m_Inputs[0];
40  const TensorInfo& inputInfo = GetTensorInfo(input);
41 
42  m_InputShape = inputInfo.GetShape();
43  m_InputDecoder = MakeDecoder<float>(inputInfo);
44 
45  // set up output encoder
46  ITensorHandle* output = m_Data.m_Outputs[0];
47  const TensorInfo& outputInfo = GetTensorInfo(output);
48 
49  m_OutputShape = outputInfo.GetShape();
50  m_OutputEncoder = MakeEncoder<float>(outputInfo);
51 }
const TransposeConvolution2dQueueDescriptor m_Data
Definition: Workload.hpp:46
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
std::vector< ITensorHandle * > m_Outputs
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1