From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- .../_ref_convolution2d_workload_8cpp_source.xhtml | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 21.02/_ref_convolution2d_workload_8cpp_source.xhtml (limited to '21.02/_ref_convolution2d_workload_8cpp_source.xhtml') diff --git a/21.02/_ref_convolution2d_workload_8cpp_source.xhtml b/21.02/_ref_convolution2d_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..9a984096be --- /dev/null +++ b/21.02/_ref_convolution2d_workload_8cpp_source.xhtml @@ -0,0 +1,144 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefConvolution2dWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefConvolution2dWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include "ConvImpl.hpp"
9 #include "RefWorkloadUtils.hpp"
10 
11 #include "Profiling.hpp"
12 
13 namespace armnn
14 {
16  const Convolution2dQueueDescriptor& descriptor, const WorkloadInfo& info)
17  : BaseWorkload<Convolution2dQueueDescriptor>(descriptor, info)
18 {
19  m_Weight = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Weight));
20  const TensorInfo& rFilterInfo = m_Weight->GetTensorInfo();
21 
22  m_FilterShape = rFilterInfo.GetShape();
23  m_FilterDecoder = MakeDecoder<float>(rFilterInfo, m_Weight.get()->Map(true));
24 
25  if (descriptor.m_Parameters.m_BiasEnabled)
26  {
27  m_Bias = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Bias));
28  const TensorInfo& biasInfo = m_Bias->GetTensorInfo();
29  m_BiasDecoder = MakeDecoder<float>(biasInfo, m_Bias->Map(true));
30  }
31 }
32 
34 {
35  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
36  m_InputShape = inputInfo.GetShape();
37  m_InputDecoder = MakeDecoder<float>(inputInfo);
38 
39  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
40  m_OutputShape = outputInfo.GetShape();
41  m_OutputEncoder = MakeEncoder<float>(outputInfo);
42 }
43 
45  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefConvolution2dWorkload_Execute");
46 
47  m_InputDecoder->Reset(m_Data.m_Inputs[0]->Map());
48  m_OutputEncoder->Reset(m_Data.m_Outputs[0]->Map());
49 
50  Convolve(m_InputShape, *m_InputDecoder, m_OutputShape, *m_OutputEncoder, m_FilterShape,
51  *m_FilterDecoder, m_Data.m_Parameters.m_BiasEnabled, m_BiasDecoder.get(),
55 }
56 
57 } //namespace armnn
bool m_BiasEnabled
Enable/disable bias.
+
const ConstCpuTensorHandle * m_Bias
+
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+
const TensorShape & GetShape() const
Definition: Tensor.hpp:187
+
CPU Execution: Reference C++ kernels.
+ + + + +
const Convolution2dQueueDescriptor m_Data
Definition: Workload.hpp:46
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
uint32_t m_DilationY
Dilation along y axis.
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
+
uint32_t m_PadTop
Padding top value in the height dimension.
+
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
+
RefConvolution2dWorkload(const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
+ +
void Convolve(const TensorShape &rInputShape, Decoder< float > &rInputDecoder, const TensorShape &rOutputShape, Encoder< float > &rOutputEncoder, const TensorShape &rFilterShape, Decoder< float > &rFilterDecoder, bool biasEnabled, Decoder< float > *pBiasDecoder, DataLayout dataLayout, unsigned int paddingTop, unsigned int paddingLeft, unsigned int xStride, unsigned int yStride, unsigned int xDilation, unsigned int yDilation, bool depthwise)
Definition: ConvImpl.cpp:71
+
const ConstCpuTensorHandle * m_Weight
+
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
+ +
uint32_t m_DilationX
Dilation along x axis.
+
std::vector< ITensorHandle * > m_Outputs
+
virtual void Execute() const override
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+ +
uint32_t m_PadLeft
Padding left value in the width dimension.
+
+
+ + + + -- cgit v1.2.1