ArmNN
 21.08
ClExpWorkload Class Reference

#include <ClExpWorkload.hpp>

Inheritance diagram for ClExpWorkload:
BaseWorkload< ElementwiseUnaryQueueDescriptor > IWorkload

Public Member Functions

 ClExpWorkload (const ElementwiseUnaryQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
virtual void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< ElementwiseUnaryQueueDescriptor >
 BaseWorkload (const ElementwiseUnaryQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void ExecuteAsync (WorkingMemDescriptor &workingMemDescriptor) override
 
void PostAllocationConfigure () override
 
const ElementwiseUnaryQueueDescriptorGetData () 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< ElementwiseUnaryQueueDescriptor >
ElementwiseUnaryQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 

Detailed Description

Definition at line 18 of file ClExpWorkload.hpp.

Constructor & Destructor Documentation

◆ ClExpWorkload()

ClExpWorkload ( const ElementwiseUnaryQueueDescriptor descriptor,
const WorkloadInfo info,
const arm_compute::CLCompileContext &  clCompileContext 
)

Definition at line 26 of file ClExpWorkload.cpp.

References ARMNN_REPORT_PROFILING_WORKLOAD_DESC, BaseWorkload< ElementwiseUnaryQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and QueueDescriptor::ValidateInputsOutputs().

29  : BaseWorkload<ElementwiseUnaryQueueDescriptor>(descriptor, info)
30 {
31  // Report Profiling Details
32  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClExpWorkload_Construct",
33  descriptor.m_Parameters,
34  info,
35  this->GetGuid());
36 
37  m_Data.ValidateInputsOutputs("ClExpWorkload", 1, 1);
38 
39  arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
40  arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
41 
42  m_ExpLayer.configure(clCompileContext, &input, &output);
43 }
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 45 of file ClExpWorkload.cpp.

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

46 {
47  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClExpWorkload_Execute", this->GetGuid());
48  RunClFunction(m_ExpLayer, CHECK_LOCATION());
49 }
#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: