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

#include <ClResizeWorkload.hpp>

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

+Public Member Functions

 ClResizeWorkload (const ResizeQueueDescriptor &descriptor, const WorkloadInfo &info)
 
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 
)
+
+ +

Definition at line 46 of file ClResizeWorkload.cpp.

+ +

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

+
46  :
47  BaseWorkload<ResizeQueueDescriptor>(descriptor, info)
48 {
49  m_Data.ValidateInputsOutputs("ClResizeWorkload", 1, 1);
50 
51  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
52  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
53 
54  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
55  input.info()->set_data_layout(aclDataLayout);
56  output.info()->set_data_layout(aclDataLayout);
57 
58  arm_compute::InterpolationPolicy aclInterpolationPolicy =
59  ConvertResizeMethodToAclInterpolationPolicy(descriptor.m_Parameters.m_Method);
60 
61  m_ResizeLayer.configure(&input,
62  &output,
63  aclInterpolationPolicy,
64  arm_compute::BorderMode::REPLICATE,
65  arm_compute::PixelValue(0.f),
66  arm_compute::SamplingPolicy::TOP_LEFT,
67  true,
68  descriptor.m_Parameters.m_BilinearAlignCorners);
69 };
arm_compute::InterpolationPolicy ConvertResizeMethodToAclInterpolationPolicy(ResizeMethod resizeMethod)
+
DataLayout
Definition: Types.hpp:49
+
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 71 of file ClResizeWorkload.cpp.

+ +

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

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