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_cl_softmax_uint8_workload.xhtml | 249 +++++++++++++++++++++ 1 file changed, 249 insertions(+) create mode 100644 20.02/classarmnn_1_1_cl_softmax_uint8_workload.xhtml (limited to '20.02/classarmnn_1_1_cl_softmax_uint8_workload.xhtml') diff --git a/20.02/classarmnn_1_1_cl_softmax_uint8_workload.xhtml b/20.02/classarmnn_1_1_cl_softmax_uint8_workload.xhtml new file mode 100644 index 0000000000..6333b2251c --- /dev/null +++ b/20.02/classarmnn_1_1_cl_softmax_uint8_workload.xhtml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + +ArmNN: ClSoftmaxUint8Workload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClSoftmaxUint8Workload Class Reference
+
+
+ +

#include <ClSoftmaxUint8Workload.hpp>

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

+Public Member Functions

 ClSoftmaxUint8Workload (const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
 
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 18 of file ClSoftmaxUint8Workload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClSoftmaxUint8Workload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ClSoftmaxUint8Workload (const SoftmaxQueueDescriptordescriptor,
const WorkloadInfoinfo,
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & memoryManager 
)
+
+ +

Definition at line 16 of file ClSoftmaxUint8Workload.cpp.

+ +

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

+
18  : Uint8Workload<SoftmaxQueueDescriptor>(descriptor, info)
19  , m_SoftmaxLayer(memoryManager)
20 {
21  m_Data.ValidateInputsOutputs("ClSoftmaxUint8Workload", 1, 1);
22 
23  arm_compute::ICLTensor& input = static_cast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
24  arm_compute::ICLTensor& output = static_cast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
25 
26  const auto outputQuantization = output.info()->quantization_info();
27 
28  if ((!outputQuantization.scale().empty() && outputQuantization.scale()[0] != (1.0f / 256.0f)) ||
29  (!outputQuantization.offset().empty() && outputQuantization.offset()[0] != 0) ||
30  outputQuantization.scale().empty() || outputQuantization.offset().empty())
31  {
32  throw InvalidArgumentException(
33  "Invalid quantization for output. Only scale = 1.0f / 256.0f and offset = 0 supported");
34  }
35 
36  unsigned int aclAxis = ComputeSoftmaxAclAxis(m_Data.m_Parameters, info.m_InputTensorInfos[0]);
37  m_SoftmaxLayer.configure(&input, &output, descriptor.m_Parameters.m_Beta, aclAxis);
38 }
const QueueDescriptor m_Data
Definition: Workload.hpp:46
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
unsigned int ComputeSoftmaxAclAxis(const SoftmaxDescriptor &softmaxDesc, const armnn::TensorInfo &tensor)
+
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 40 of file ClSoftmaxUint8Workload.cpp.

+ +

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

+
41 {
42  ARMNN_SCOPED_PROFILING_EVENT_CL("ClSoftmaxUint8Workload_Execute");
43  RunClFunction(m_SoftmaxLayer, CHECK_LOCATION());
44 }
#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