From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/classarmnn_1_1_cl_prelu_workload.xhtml | 262 +++++++++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 22.02/classarmnn_1_1_cl_prelu_workload.xhtml (limited to '22.02/classarmnn_1_1_cl_prelu_workload.xhtml') diff --git a/22.02/classarmnn_1_1_cl_prelu_workload.xhtml b/22.02/classarmnn_1_1_cl_prelu_workload.xhtml new file mode 100644 index 0000000000..e7c6663130 --- /dev/null +++ b/22.02/classarmnn_1_1_cl_prelu_workload.xhtml @@ -0,0 +1,262 @@ + + + + + + + + + + + + + +ArmNN: ClPreluWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClPreluWorkload Class Reference
+
+
+ +

#include <ClPreluWorkload.hpp>

+
+Inheritance diagram for ClPreluWorkload:
+
+
+ + +ClBaseWorkload< PreluQueueDescriptor > +BaseWorkload< PreluQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClPreluWorkload (const PreluQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
void Execute () const override
 
- Public Member Functions inherited from ClBaseWorkload< PreluQueueDescriptor >
 ClBaseWorkload (const PreluQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ReplaceInputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
void ReplaceOutputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
- Public Member Functions inherited from BaseWorkload< PreluQueueDescriptor >
 BaseWorkload (const PreluQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ExecuteAsync (WorkingMemDescriptor &workingMemDescriptor) override
 
void PostAllocationConfigure () override
 
const PreluQueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
virtual bool SupportsTensorHandleReplacement () const override
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from ClBaseWorkload< PreluQueueDescriptor >
virtual void Reconfigure ()
 
- Protected Attributes inherited from BaseWorkload< PreluQueueDescriptor >
PreluQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 18 of file ClPreluWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClPreluWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ClPreluWorkload (const PreluQueueDescriptordescriptor,
const WorkloadInfoinfo,
const arm_compute::CLCompileContext & clCompileContext 
)
+
+ +

Definition at line 29 of file ClPreluWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT, BaseWorkload< PreluQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, armnn::Undefined, and QueueDescriptor::ValidateInputsOutputs().

+
32  : ClBaseWorkload<PreluQueueDescriptor>(descriptor, info)
33 {
34  m_Data.ValidateInputsOutputs("ClPreluWorkload", 1, 1);
35 
36  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
37  arm_compute::ICLTensor& alpha = static_cast<IClTensorHandle*>(m_Data.m_Inputs[1])->GetTensor();
38  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
39 
40  {
41  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClPreluWorkload_configure");
42  m_PreluLayer.configure(clCompileContext, &input, &alpha, &output);
43  }
44 }
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
+ +
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 46 of file ClPreluWorkload.cpp.

+ +

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

+
47 {
48  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClPreluWorkload_Execute", this->GetGuid());
49  RunClFunction(m_PreluLayer, CHECK_LOCATION());
50 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:209
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1