ArmNN
 25.11
Loading...
Searching...
No Matches
ClReshapeWorkload Class Reference

#include <ClReshapeWorkload.hpp>

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

Public Member Functions

 ClReshapeWorkload (const ReshapeQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
void Execute () const override
Public Member Functions inherited from ClBaseWorkload< ReshapeQueueDescriptor >
 ClBaseWorkload (const ReshapeQueueDescriptor &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< ReshapeQueueDescriptor >
 BaseWorkload (const ReshapeQueueDescriptor &descriptor, const WorkloadInfo &info)
virtual const std::string & GetName () const override
void PostAllocationConfigure () override
const ReshapeQueueDescriptorGetData () const
arm::pipe::ProfilingGuid GetGuid () const final
virtual bool SupportsTensorHandleReplacement () const override
Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
virtual armnn::Optional< armnn::MemoryRequirementsGetMemoryRequirements ()

Additional Inherited Members

Protected Member Functions inherited from ClBaseWorkload< ReshapeQueueDescriptor >
virtual void Reconfigure ()
Protected Attributes inherited from BaseWorkload< ReshapeQueueDescriptor >
ReshapeQueueDescriptor m_Data
const arm::pipe::ProfilingGuid m_Guid
const std::string m_Name

Detailed Description

Definition at line 18 of file ClReshapeWorkload.hpp.

Constructor & Destructor Documentation

◆ ClReshapeWorkload()

ClReshapeWorkload ( const ReshapeQueueDescriptor & descriptor,
const WorkloadInfo & info,
const arm_compute::CLCompileContext & clCompileContext )

Definition at line 24 of file ClReshapeWorkload.cpp.

27 : ClBaseWorkload<ReshapeQueueDescriptor>(descriptor, info)
28{
29 m_Data.ValidateInputsOutputs("ClReshapeWorkload", 1, 1);
30
31 arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
32 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
33
34 {
35 ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID("ClReshapeWorkload_configure");
36 m_Layer.configure(clCompileContext, &input, &output);
37 }
38}
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.

References ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID, ClBaseWorkload< ReshapeQueueDescriptor >::ClBaseWorkload(), IClTensorHandle::GetTensor(), armnn::info, and BaseWorkload< ReshapeQueueDescriptor >::m_Data.

Member Function Documentation

◆ Execute()

void Execute ( ) const
overridevirtual

Implements IWorkload.

Definition at line 40 of file ClReshapeWorkload.cpp.

41{
42 ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID("ClReshapeWorkload_Execute");
43 RunClFunction(m_Layer, CHECK_LOCATION());
44}
#define CHECK_LOCATION()
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)

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


The documentation for this class was generated from the following files: