ArmNN
 21.02
RefDepthToSpaceWorkload Class Reference

#include <RefDepthToSpaceWorkload.hpp>

Inheritance diagram for RefDepthToSpaceWorkload:
BaseWorkload< DepthToSpaceQueueDescriptor > IWorkload

Public Member Functions

virtual void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< DepthToSpaceQueueDescriptor >
 BaseWorkload (const DepthToSpaceQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const DepthToSpaceQueueDescriptorGetData () 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< DepthToSpaceQueueDescriptor >
const DepthToSpaceQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 

Detailed Description

Definition at line 13 of file RefDepthToSpaceWorkload.hpp.

Member Function Documentation

◆ Execute()

void Execute ( ) const
overridevirtual

Implements IWorkload.

Definition at line 14 of file RefDepthToSpaceWorkload.cpp.

References ARMNN_SCOPED_PROFILING_EVENT, armnn::CpuRef, armnn::DepthToSpace, TensorInfo::GetDataType(), armnn::GetDataTypeSize(), armnn::GetTensorInfo(), BaseWorkload< DepthToSpaceQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.

15 {
16  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefDepthToSpaceWorkload_Execute");
17 
18  const TensorInfo inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
19 
20  DepthToSpace(inputInfo,
22  m_Data.m_Inputs[0]->Map(),
23  m_Data.m_Outputs[0]->Map(),
24  GetDataTypeSize(inputInfo.GetDataType()));
25 }
CPU Execution: Reference C++ kernels.
const DepthToSpaceQueueDescriptor m_Data
Definition: Workload.hpp:46
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
std::vector< ITensorHandle * > m_Outputs
std::vector< ITensorHandle * > m_Inputs
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
constexpr unsigned int GetDataTypeSize(DataType dataType)
Definition: TypesUtils.hpp:126

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