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

#include <NeonSoftmaxFloatWorkload.hpp>

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

+Public Member Functions

 NeonSoftmaxFloatWorkload (const SoftmaxQueueDescriptor &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 18 of file NeonSoftmaxFloatWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ NeonSoftmaxFloatWorkload()

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

Definition at line 16 of file NeonSoftmaxFloatWorkload.cpp.

+ +

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

+
18  : FloatWorkload<SoftmaxQueueDescriptor>(descriptor, info)
19 {
20  m_Data.ValidateInputsOutputs("NeonSoftmaxFloatWorkload", 1, 1);
21 
22  // The ArmCompute softmax layer uses 2D input/output tensors, so flatten the first three dimensions.
23  arm_compute::ITensor& input = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
24  arm_compute::ITensor& output = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
25 
26  auto layer = std::make_unique<arm_compute::NESoftmaxLayer>(memoryManager);
27  unsigned int aclAxis = ComputeSoftmaxAclAxis(m_Data.m_Parameters, info.m_InputTensorInfos[0]);
28  layer->configure(&input, &output, m_Data.m_Parameters.m_Beta, aclAxis);
29  m_SoftmaxLayer.reset(layer.release());
30 }
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 32 of file NeonSoftmaxFloatWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT_NEON.

+
33 {
34  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonSoftmaxFloatWorkload_Execute");
35  m_SoftmaxLayer->run();
36 }
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1