From ae050524109f1ce827962665436ef7430f2ac479 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Wed, 22 Mar 2023 16:48:58 +0000 Subject: IVGCVSW-7255 Update Doxygen Documentation and publish on GitHub. * Updating Doxygen documentation for 23.02 release. Signed-off-by: David Monahan Change-Id: I545574ff7664b4595d2fe6a91a3c35d2ad55df82 --- 23.02/classarmnn_1_1_cl_softmax_workload.xhtml | 99 +++++++++++++++++--------- 1 file changed, 65 insertions(+), 34 deletions(-) (limited to '23.02/classarmnn_1_1_cl_softmax_workload.xhtml') diff --git a/23.02/classarmnn_1_1_cl_softmax_workload.xhtml b/23.02/classarmnn_1_1_cl_softmax_workload.xhtml index 6b3946eec4..4b03f634e2 100644 --- a/23.02/classarmnn_1_1_cl_softmax_workload.xhtml +++ b/23.02/classarmnn_1_1_cl_softmax_workload.xhtml @@ -8,7 +8,7 @@ - + ArmNN: ClSoftmaxWorkload Class Reference @@ -19,9 +19,6 @@ - @@ -30,7 +27,8 @@ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], }); - + + @@ -51,18 +49,21 @@ - + +/* @license-end */
@@ -76,7 +77,9 @@ $(function() {
@@ -111,13 +114,13 @@ Inheritance diagram for ClSoftmaxWorkload:
ClBaseWorkload< SoftmaxQueueDescriptor > BaseWorkload< SoftmaxQueueDescriptor > -IWorkload - - +IWorkload + + - + @@ -144,6 +147,10 @@ Public Member Functions + + + + @@ -203,21 +210,29 @@ Additional Inherited Members

Definition at line 28 of file ClSoftmaxWorkload.cpp.

- -

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, ARMNN_SCOPED_PROFILING_EVENT, armnn::ComputeAclAxis(), SoftmaxDescriptor::m_Axis, SoftmaxDescriptor::m_Beta, BaseWorkload< SoftmaxQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, WorkloadInfo::m_InputTensorInfos, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, armnn::Undefined, and QueueDescriptor::ValidateInputsOutputs().

-
32  : ClBaseWorkload<SoftmaxQueueDescriptor>(descriptor, info)
33  , m_SoftmaxLayer(memoryManager)
34 {
35  // Report Profiling Details
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClSoftmaxWorkload_Construct",
37  descriptor.m_Parameters,
38  info,
39  this->GetGuid());
40 
41  m_Data.ValidateInputsOutputs("ClSoftmaxWorkload", 1, 1);
42 
43  arm_compute::ICLTensor& input = static_cast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
44  arm_compute::ICLTensor& output = static_cast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
45 
46  int aclAxis = ComputeAclAxis(m_Data.m_Parameters.m_Axis, info.m_InputTensorInfos[0]);
47  {
48  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClSoftmaxWorkload_configure");
49  m_SoftmaxLayer.configure(clCompileContext, &input, &output, m_Data.m_Parameters.m_Beta, aclAxis);
50  }
51 }
int ComputeAclAxis(const int &armnnAxis, const armnn::TensorInfo &tensor)
Function to convert ArmNN axis (left to right) to ACL axis (right to left) ranging from [-rank...
-
int m_Axis
Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...
-
float m_Beta
Exponentiation value.
-
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
- -
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
- - -
std::vector< ITensorHandle * > m_Outputs
- -
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
-
std::vector< ITensorHandle * > m_Inputs
+
32  : ClBaseWorkload<SoftmaxQueueDescriptor>(descriptor, info)
+
33  , m_SoftmaxLayer(memoryManager)
+
34 {
+
35  // Report Profiling Details
+
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClSoftmaxWorkload_Construct",
+
37  descriptor.m_Parameters,
+
38  info,
+
39  this->GetGuid());
+
40 
+
41  m_Data.ValidateInputsOutputs("ClSoftmaxWorkload", 1, 1);
+
42 
+
43  arm_compute::ICLTensor& input = static_cast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
44  arm_compute::ICLTensor& output = static_cast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+
45 
+
46  int aclAxis = ComputeAclAxis(m_Data.m_Parameters.m_Axis, info.m_InputTensorInfos[0]);
+
47  {
+
48  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClSoftmaxWorkload_configure");
+
49  m_SoftmaxLayer.configure(clCompileContext, &input, &output, m_Data.m_Parameters.m_Beta, aclAxis);
+
50  }
+
51 }
+

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, ARMNN_SCOPED_PROFILING_EVENT, armnn::ComputeAclAxis(), armnn::info, SoftmaxDescriptor::m_Axis, SoftmaxDescriptor::m_Beta, BaseWorkload< SoftmaxQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, armnn::Undefined, and QueueDescriptor::ValidateInputsOutputs().

+

Member Function Documentation

@@ -247,13 +262,13 @@ Additional Inherited Members

Implements IWorkload.

Definition at line 53 of file ClSoftmaxWorkload.cpp.

- -

References ARMNN_SCOPED_PROFILING_EVENT_CL_GUID, CHECK_LOCATION, BaseWorkload< SoftmaxQueueDescriptor >::GetGuid(), and armnn::RunClFunction().

-
54 {
55  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClSoftmaxWorkload_Execute", this->GetGuid());
56  RunClFunction(m_SoftmaxLayer, CHECK_LOCATION());
57 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
-
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
-
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:61
-
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+
54 {
+
55  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClSoftmaxWorkload_Execute", this->GetGuid());
+
56  RunClFunction(m_SoftmaxLayer, CHECK_LOCATION());
+
57 }
+

References ARMNN_SCOPED_PROFILING_EVENT_CL_GUID, CHECK_LOCATION, BaseWorkload< SoftmaxQueueDescriptor >::GetGuid(), and armnn::RunClFunction().

+

The documentation for this class was generated from the following files: +
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:61
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+
int ComputeAclAxis(const int &armnnAxis, const armnn::TensorInfo &tensor)
Function to convert ArmNN axis (left to right) to ACL axis (right to left) ranging from [-rank,...
+ +
int m_Axis
Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
float m_Beta
Exponentiation value.
+ + +
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+
std::vector< ITensorHandle * > m_Outputs
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
std::vector< ITensorHandle * > m_Inputs
+ -- cgit v1.2.1

Public Member Functions

 ClSoftmaxWorkload (const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
 ClSoftmaxWorkload (const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
 
void Execute () const override
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual arm::pipe::ProfilingGuid GetGuid () const =0
 
virtual bool SupportsTensorHandleReplacement () const =0
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()