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

#include <NeonArgMinMaxWorkload.hpp>

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

+Public Member Functions

 NeonArgMinMaxWorkload (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 NeonArgMinMaxWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ NeonArgMinMaxWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
NeonArgMinMaxWorkload (const ArgMinMaxQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 53 of file NeonArgMinMaxWorkload.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().

+
55  : BaseWorkload<ArgMinMaxQueueDescriptor>(descriptor, info)
56 {
57  arm_compute::ITensor& input = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
58  arm_compute::ITensor& output = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
59 
60  auto numDims = info.m_InputTensorInfos[0].GetNumDimensions();
61  auto unsignedAxis = armnnUtils::GetUnsignedAxis(numDims, m_Data.m_Parameters.m_Axis);
62  int aclAxis = boost::numeric_cast<int>(CalcAclAxis(numDims, unsignedAxis));
63 
64  auto layer = std::make_unique<arm_compute::NEArgMinMaxLayer>();
65 
67  {
68  layer->configure(&input, aclAxis, &output, arm_compute::ReductionOperation::ARG_IDX_MAX);
69  }
70  else
71  {
72  layer->configure(&input, aclAxis, &output, arm_compute::ReductionOperation::ARG_IDX_MIN);
73  }
74 
75  m_ArgMinMaxLayer.reset(layer.release());
76 }
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 78 of file NeonArgMinMaxWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_NEON.

+
79 {
80  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonArgMinMaxWorkload_Execute");
81  m_ArgMinMaxLayer->run();
82 }
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1