From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- 21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml | 258 +++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml (limited to '21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml') diff --git a/21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml b/21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml new file mode 100644 index 0000000000..485c5c61ec --- /dev/null +++ b/21.08/classarmnn_1_1_cl_log_softmax_workload.xhtml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + +ArmNN: ClLogSoftmaxWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClLogSoftmaxWorkload Class Reference
+
+
+ +

#include <ClLogSoftmaxWorkload.hpp>

+
+Inheritance diagram for ClLogSoftmaxWorkload:
+
+
+ + +BaseWorkload< LogSoftmaxQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClLogSoftmaxWorkload (const LogSoftmaxQueueDescriptor &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 BaseWorkload< LogSoftmaxQueueDescriptor >
 BaseWorkload (const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ExecuteAsync (WorkingMemDescriptor &workingMemDescriptor) override
 
void PostAllocationConfigure () override
 
const LogSoftmaxQueueDescriptorGetData () 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< LogSoftmaxQueueDescriptor >
LogSoftmaxQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 24 of file ClLogSoftmaxWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClLogSoftmaxWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClLogSoftmaxWorkload (const LogSoftmaxQueueDescriptordescriptor,
const WorkloadInfoinfo,
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & memoryManager,
const arm_compute::CLCompileContext & clCompileContext 
)
+
+ +

Definition at line 28 of file ClLogSoftmaxWorkload.cpp.

+ +

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

+
32  : BaseWorkload<LogSoftmaxQueueDescriptor>(descriptor, info)
33  , m_LogSoftmaxLayer(memoryManager)
34 {
35  // Report Profiling Details
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClLogSoftmaxWorkload_Construct",
37  descriptor.m_Parameters,
38  info,
39  this->GetGuid());
40 
41  m_Data.ValidateInputsOutputs("ClLogSoftmaxWorkload", 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  m_LogSoftmaxLayer.configure(clCompileContext, &input, &output, m_Data.m_Parameters.m_Beta, aclAxis);
48 }
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
+ + +
std::vector< ITensorHandle * > m_Outputs
+ +
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:226
+
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 50 of file ClLogSoftmaxWorkload.cpp.

+ +

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

+
51 {
52  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClLogSoftmaxWorkload_Execute", this->GetGuid());
53  RunClFunction(m_LogSoftmaxLayer, CHECK_LOCATION());
54 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1