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

#include <NeonNormalizationFloatWorkload.hpp>

+
+Inheritance diagram for NeonNormalizationFloatWorkload:
+
+
+ + +TypedWorkload< QueueDescriptor, DataTypes > +BaseWorkload< QueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 NeonNormalizationFloatWorkload (const NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
 
virtual void Execute () const override
 
- Public Member Functions inherited from TypedWorkload< QueueDescriptor, DataTypes >
 TypedWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
- Public Member Functions inherited from BaseWorkload< QueueDescriptor >
 BaseWorkload (const QueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const QueueDescriptorGetData () 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< QueueDescriptor >
const QueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 23 of file NeonNormalizationFloatWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ NeonNormalizationFloatWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
NeonNormalizationFloatWorkload (const NormalizationQueueDescriptordescriptor,
const WorkloadInfoinfo,
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & memoryManager 
)
+
+ +

Definition at line 60 of file NeonNormalizationFloatWorkload.cpp.

+ +

References BaseWorkload< QueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, WorkloadInfo::m_InputTensorInfos, QueueDescriptor::m_Outputs, WorkloadInfo::m_OutputTensorInfos, and QueueDescriptor::ValidateInputsOutputs().

+
63  : FloatWorkload<NormalizationQueueDescriptor>(descriptor, info)
64 {
65  m_Data.ValidateInputsOutputs("NeonNormalizationFloatWorkload", 1, 1);
66  std::string reasonIfUnsupported;
67  if (!IsNeonNormalizationDescriptorSupported(m_Data.m_Parameters, Optional<std::string&>(reasonIfUnsupported)))
68  {
69  throw UnimplementedException(reasonIfUnsupported);
70  }
71 
72  // Input and output tensors have to have the same dimensionality.
73  if (info.m_InputTensorInfos[0].GetShape()[1] != info.m_OutputTensorInfos[0].GetShape()[1]
74  || info.m_InputTensorInfos[0].GetShape()[0] != info.m_OutputTensorInfos[0].GetShape()[0]
75  || info.m_InputTensorInfos[0].GetShape()[3] != info.m_OutputTensorInfos[0].GetShape()[3]
76  || info.m_InputTensorInfos[0].GetShape()[2] != info.m_OutputTensorInfos[0].GetShape()[2])
77  {
78  throw InvalidArgumentException("Normalization requires input and output tensors to have equal dimensionality.");
79  }
80 
81  arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
82  arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
83  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
84  input.info()->set_data_layout(aclDataLayout);
85  output.info()->set_data_layout(aclDataLayout);
86 
87  const arm_compute::NormType normType =
88  ConvertNormalizationAlgorithmChannelToAclNormType(m_Data.m_Parameters.m_NormChannelType);
89  arm_compute::NormalizationLayerInfo normalizationInfo(normType,
90  m_Data.m_Parameters.m_NormSize,
91  m_Data.m_Parameters.m_Alpha,
92  m_Data.m_Parameters.m_Beta,
93  m_Data.m_Parameters.m_K,
94  false);
95  auto layer = std::make_unique<arm_compute::NENormalizationLayer>(memoryManager);
96  layer->configure(&input, &output, normalizationInfo);
97  m_NormalizationLayer.reset(layer.release());
98 }
DataLayout
Definition: Types.hpp:50
+
const QueueDescriptor m_Data
Definition: Workload.hpp:46
+
arm_compute::NormType ConvertNormalizationAlgorithmChannelToAclNormType(NormalizationAlgorithmChannel channelType)
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 100 of file NeonNormalizationFloatWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_NEON.

+
101 {
102  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonNormalizationFloatWorkload_Execute");
103  m_NormalizationLayer->run();
104 }
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1