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

#include <ClArgMinMaxWorkload.hpp>

+
+Inheritance diagram for ClArgMinMaxWorkload:
+
+
+ + +BaseWorkload< ArgMinMaxQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

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

Detailed Description

+
+

Definition at line 20 of file ClArgMinMaxWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClArgMinMaxWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
ClArgMinMaxWorkload (const ArgMinMaxQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 54 of file ClArgMinMaxWorkload.cpp.

+ +

References armnnUtils::GetUnsignedAxis(), ArgMinMaxDescriptor::m_Axis, BaseWorkload< ArgMinMaxQueueDescriptor >::m_Data, ArgMinMaxDescriptor::m_Function, QueueDescriptor::m_Inputs, WorkloadInfo::m_InputTensorInfos, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, armnn::Max, and armnn::numeric_cast().

+
56  : BaseWorkload<ArgMinMaxQueueDescriptor>(descriptor, info)
57 {
58  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(this->m_Data.m_Inputs[0])->GetTensor();
59  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(this->m_Data.m_Outputs[0])->GetTensor();
60 
61  auto numDims = info.m_InputTensorInfos[0].GetNumDimensions();
62  auto unsignedAxis = armnnUtils::GetUnsignedAxis(numDims, m_Data.m_Parameters.m_Axis);
63  int aclAxis = boost::numeric_cast<int>(CalcAclAxis(numDims, unsignedAxis));
64 
66  {
67  m_ArgMinMaxLayer.configure(&input, aclAxis, &output, arm_compute::ReductionOperation::ARG_IDX_MAX);
68  }
69  else
70  {
71  m_ArgMinMaxLayer.configure(&input, aclAxis, &output, arm_compute::ReductionOperation::ARG_IDX_MIN);
72  }
73 }
const ArgMinMaxQueueDescriptor m_Data
Definition: Workload.hpp:46
+
ArgMinMaxFunction m_Function
Specify if the function is to find Min or Max.
Definition: Descriptors.hpp:56
+ + +
unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis)
+
std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)
Definition: NumericCast.hpp:33
+
std::vector< ITensorHandle * > m_Outputs
+ +
int m_Axis
Axis to reduce across the input tensor.
Definition: Descriptors.hpp:58
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 75 of file ClArgMinMaxWorkload.cpp.

+ +

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

+
76 {
77  ARMNN_SCOPED_PROFILING_EVENT_CL("ClArgMinMaxWorkload_Execute");
78  RunClFunction(m_ArgMinMaxLayer, CHECK_LOCATION());
79 }
#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