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_depthwise_convolution2d_workload.xhtml | 291 +++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 20.02/classarmnn_1_1_ref_depthwise_convolution2d_workload.xhtml (limited to '20.02/classarmnn_1_1_ref_depthwise_convolution2d_workload.xhtml') diff --git a/20.02/classarmnn_1_1_ref_depthwise_convolution2d_workload.xhtml b/20.02/classarmnn_1_1_ref_depthwise_convolution2d_workload.xhtml new file mode 100644 index 0000000000..3619750e1e --- /dev/null +++ b/20.02/classarmnn_1_1_ref_depthwise_convolution2d_workload.xhtml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + +ArmNN: RefDepthwiseConvolution2dWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefDepthwiseConvolution2dWorkload Class Reference
+
+
+ +

#include <RefDepthwiseConvolution2dWorkload.hpp>

+
+Inheritance diagram for RefDepthwiseConvolution2dWorkload:
+
+
+ + +BaseWorkload< DepthwiseConvolution2dQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 RefDepthwiseConvolution2dWorkload (const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
virtual void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< DepthwiseConvolution2dQueueDescriptor >
 BaseWorkload (const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const DepthwiseConvolution2dQueueDescriptorGetData () 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< DepthwiseConvolution2dQueueDescriptor >
const DepthwiseConvolution2dQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 15 of file RefDepthwiseConvolution2dWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefDepthwiseConvolution2dWorkload()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
RefDepthwiseConvolution2dWorkload (const DepthwiseConvolution2dQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+explicit
+
+ +

Definition at line 18 of file RefDepthwiseConvolution2dWorkload.cpp.

+ +

References TensorInfo::GetShape(), DepthwiseConvolution2dQueueDescriptor::m_Bias, DepthwiseConvolution2dDescriptor::m_BiasEnabled, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and DepthwiseConvolution2dQueueDescriptor::m_Weight.

+
20  : BaseWorkload<DepthwiseConvolution2dQueueDescriptor>(descriptor, info)
21 {
22  m_Weight = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Weight));
23  const TensorInfo& rFilterInfo = m_Weight->GetTensorInfo();
24  m_FilterShape = rFilterInfo.GetShape();
25  m_FilterDecoder = MakeDecoder<float>(rFilterInfo, m_Weight->Map(true));
26 
27  if (descriptor.m_Parameters.m_BiasEnabled)
28  {
29  m_Bias = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.m_Bias));
30  const TensorInfo& biasInfo = m_Bias->GetTensorInfo();
31  m_BiasDecoder = MakeDecoder<float>(biasInfo, m_Bias->Map(true));
32  }
33 }
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 46 of file RefDepthwiseConvolution2dWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT, armnn::Convolve(), armnn::CpuRef, DepthwiseConvolution2dDescriptor::m_BiasEnabled, BaseWorkload< DepthwiseConvolution2dQueueDescriptor >::m_Data, DepthwiseConvolution2dDescriptor::m_DataLayout, DepthwiseConvolution2dDescriptor::m_DilationX, DepthwiseConvolution2dDescriptor::m_DilationY, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, DepthwiseConvolution2dDescriptor::m_PadLeft, DepthwiseConvolution2dDescriptor::m_PadTop, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, DepthwiseConvolution2dDescriptor::m_StrideX, and DepthwiseConvolution2dDescriptor::m_StrideY.

+
47 {
48  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefDepthwiseConvolution2dWorkload_Execute");
49  std::unique_ptr<Decoder<float>> pBiasDecoder{};
50 
51  m_InputDecoder->Reset(m_Data.m_Inputs[0]->Map());
52  m_OutputEncoder->Reset(m_Data.m_Outputs[0]->Map());
53 
54  Convolve(m_InputShape, *m_InputDecoder, m_OutputShape, *m_OutputEncoder,
55  m_FilterShape, *m_FilterDecoder, m_Data.m_Parameters.m_BiasEnabled, m_BiasDecoder.get(),
60 }
bool m_BiasEnabled
Enable/disable bias.
+
CPU Execution: Reference C++ kernels.
+
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+
uint32_t m_PadLeft
Padding left value in the width dimension.
+
const DepthwiseConvolution2dQueueDescriptor m_Data
Definition: Workload.hpp:46
+ +
uint32_t m_DilationY
Dilation factor value for height dimension.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
+
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
+
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
+
uint32_t m_DilationX
Dilation factor value for width dimension.
+
uint32_t m_PadTop
Padding top value in the height dimension.
+
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
+
std::vector< ITensorHandle * > m_Outputs
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+ +

◆ PostAllocationConfigure()

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

Implements IWorkload.

+ +

Definition at line 35 of file RefDepthwiseConvolution2dWorkload.cpp.

+ +

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

+
36 {
37  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
38  m_InputShape = inputInfo.GetShape();
39  m_InputDecoder = MakeDecoder<float>(inputInfo);
40 
41  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
42  m_OutputShape = outputInfo.GetShape();
43  m_OutputEncoder = MakeEncoder<float>(outputInfo);
44 }
const DepthwiseConvolution2dQueueDescriptor 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