ArmNN
 24.02
ClTileWorkload Class Reference

#include <ClTileWorkload.hpp>

Inheritance diagram for ClTileWorkload:
[legend]
Collaboration diagram for ClTileWorkload:
[legend]

Public Member Functions

 ClTileWorkload (const TileQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
 
void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< TileQueueDescriptor >
 BaseWorkload (const TileQueueDescriptor &descriptor, const WorkloadInfo &info)
 
virtual const std::string & GetName () const override
 
void ExecuteAsync (ExecutionData &executionData) override
 
void PostAllocationConfigure () override
 
const TileQueueDescriptorGetData () const
 
arm::pipe::ProfilingGuid GetGuid () const final
 
virtual bool SupportsTensorHandleReplacement () const override
 
void ReplaceInputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
void ReplaceOutputTensorHandle (ITensorHandle *tensorHandle, unsigned int slot) override
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual arm::pipe::ProfilingGuid GetGuid () const =0
 
virtual bool SupportsTensorHandleReplacement () const =0
 
virtual const std::string & GetName () const =0
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()
 

Additional Inherited Members

- Protected Attributes inherited from BaseWorkload< TileQueueDescriptor >
TileQueueDescriptor m_Data
 
const arm::pipe::ProfilingGuid m_Guid
 
const std::string m_Name
 

Detailed Description

Definition at line 16 of file ClTileWorkload.hpp.

Constructor & Destructor Documentation

◆ ClTileWorkload()

ClTileWorkload ( const TileQueueDescriptor descriptor,
const WorkloadInfo info,
const arm_compute::CLCompileContext &  clCompileContext 
)

Definition at line 29 of file ClTileWorkload.cpp.

32  : BaseWorkload<TileQueueDescriptor>(descriptor, info)
33 {
34  m_Data.ValidateInputsOutputs("ClTileWorkload", 1, 1);
35 
36  std::vector<uint32_t> aclMultiples = descriptor.m_Parameters.m_Multiples;
37  std::reverse(aclMultiples.begin(),aclMultiples.end());
38 
39  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
40  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
41  m_Layer.configure(clCompileContext, &input, &output, aclMultiples);
42 }

References armnn::info, BaseWorkload< TileQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, TileDescriptor::m_Multiples, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and QueueDescriptor::ValidateInputsOutputs().

Member Function Documentation

◆ Execute()

void Execute ( ) const
overridevirtual

Implements IWorkload.

Definition at line 44 of file ClTileWorkload.cpp.

45 {
46  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClTileWorkload_Execute", this->GetGuid());
47  m_Layer.run();
48 }

References ARMNN_SCOPED_PROFILING_EVENT_CL_GUID, and BaseWorkload< TileQueueDescriptor >::GetGuid().


The documentation for this class was generated from the following files:
armnn::QueueDescriptor::ValidateInputsOutputs
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
Definition: WorkloadData.cpp:446
m_Layer
IConnectableLayer * m_Layer
Definition: SubgraphViewSelector.cpp:247
ARMNN_SCOPED_PROFILING_EVENT_CL_GUID
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
Definition: ClWorkloadUtils.hpp:28
armnn::QueueDescriptor::m_Outputs
std::vector< ITensorHandle * > m_Outputs
Definition: WorkloadData.hpp:27
armnn::BaseWorkload< TileQueueDescriptor >::GetGuid
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:67
armnn::BaseWorkload< TileQueueDescriptor >::m_Data
TileQueueDescriptor m_Data
Definition: Workload.hpp:89
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition: WorkloadData.hpp:26