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 --- 21.02/classarmnn_1_1_cl_resize_workload.xhtml | 248 ++++++++++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 21.02/classarmnn_1_1_cl_resize_workload.xhtml (limited to '21.02/classarmnn_1_1_cl_resize_workload.xhtml') diff --git a/21.02/classarmnn_1_1_cl_resize_workload.xhtml b/21.02/classarmnn_1_1_cl_resize_workload.xhtml new file mode 100644 index 0000000000..7e1e511232 --- /dev/null +++ b/21.02/classarmnn_1_1_cl_resize_workload.xhtml @@ -0,0 +1,248 @@ + + + + + + + + + + + + + +ArmNN: ClResizeWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClResizeWorkload Class Reference
+
+
+ +

#include <ClResizeWorkload.hpp>

+
+Inheritance diagram for ClResizeWorkload:
+
+
+ + +BaseWorkload< ResizeQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClResizeWorkload (const ResizeQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< ResizeQueueDescriptor >
 BaseWorkload (const ResizeQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const ResizeQueueDescriptorGetData () 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< ResizeQueueDescriptor >
const ResizeQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 19 of file ClResizeWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClResizeWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ClResizeWorkload (const ResizeQueueDescriptordescriptor,
const WorkloadInfoinfo,
const arm_compute::CLCompileContext & clCompileContext 
)
+
+ +

Definition at line 49 of file ClResizeWorkload.cpp.

+ +

References BaseWorkload< ResizeQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, and QueueDescriptor::ValidateInputsOutputs().

+
52  : BaseWorkload<ResizeQueueDescriptor>(descriptor, info)
53 {
54  m_Data.ValidateInputsOutputs("ClResizeWorkload", 1, 1);
55 
56  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
57  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
58 
59  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
60  input.info()->set_data_layout(aclDataLayout);
61  output.info()->set_data_layout(aclDataLayout);
62 
63  arm_compute::InterpolationPolicy aclInterpolationPolicy =
64  ConvertResizeMethodToAclInterpolationPolicy(descriptor.m_Parameters.m_Method);
65 
66  arm_compute::SamplingPolicy samplingPolicy = descriptor.m_Parameters.m_HalfPixelCenters
67  ? arm_compute::SamplingPolicy::CENTER
68  : arm_compute::SamplingPolicy::TOP_LEFT;
69 
70  m_ResizeLayer.configure(clCompileContext,
71  &input,
72  &output,
73  arm_compute::ScaleKernelInfo(aclInterpolationPolicy,
74  arm_compute::BorderMode::REPLICATE,
75  arm_compute::PixelValue(0.f),
76  samplingPolicy,
77  true,
78  descriptor.m_Parameters.m_AlignCorners));
79 
80 };
arm_compute::InterpolationPolicy ConvertResizeMethodToAclInterpolationPolicy(ResizeMethod resizeMethod)
+
DataLayout
Definition: Types.hpp:50
+
const ResizeQueueDescriptor m_Data
Definition: Workload.hpp:46
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+ +
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 82 of file ClResizeWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_CL, CHECK_LOCATION, and armnn::RunClFunction().

+
83 {
84  ARMNN_SCOPED_PROFILING_EVENT_CL("ClResizeWorkload_Execute");
85  RunClFunction(m_ResizeLayer, CHECK_LOCATION());
86 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1