From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1_cl_slice_workload.xhtml | 243 +++++++++++++++++++++++++++ 1 file changed, 243 insertions(+) create mode 100644 20.02/classarmnn_1_1_cl_slice_workload.xhtml (limited to '20.02/classarmnn_1_1_cl_slice_workload.xhtml') diff --git a/20.02/classarmnn_1_1_cl_slice_workload.xhtml b/20.02/classarmnn_1_1_cl_slice_workload.xhtml new file mode 100644 index 0000000000..f5a14d6ec4 --- /dev/null +++ b/20.02/classarmnn_1_1_cl_slice_workload.xhtml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + +ArmNN: ClSliceWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClSliceWorkload Class Reference
+
+
+ +

#include <ClSliceWorkload.hpp>

+
+Inheritance diagram for ClSliceWorkload:
+
+
+ + +BaseWorkload< SliceQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

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

Detailed Description

+
+

Definition at line 20 of file ClSliceWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClSliceWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
ClSliceWorkload (const SliceQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 34 of file ClSliceWorkload.cpp.

+ +

References SliceDescriptor::m_Begin, BaseWorkload< SliceQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, QueueDescriptor::m_Outputs, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, SliceDescriptor::m_Size, armnn::SetClSliceData(), and QueueDescriptor::ValidateInputsOutputs().

+
35  : BaseWorkload<SliceQueueDescriptor>(descriptor, info)
36 {
37  m_Data.ValidateInputsOutputs("ClSliceWorkload", 1, 1);
38 
39  arm_compute::ICLTensor& input = boost::polymorphic_downcast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
40  arm_compute::ICLTensor& output = boost::polymorphic_downcast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
41 
44 
46 
47  m_SliceFunction.configure(&input, &output, starts, ends);
48 }
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
+
const SliceQueueDescriptor m_Data
Definition: Workload.hpp:46
+
std::vector< unsigned int > m_Size
Size of the slice in each dimension.
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+ +
std::vector< unsigned int > m_Begin
Beginning indices of the slice in each dimension.
+
auto SetClSliceData(const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
+
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

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

Implements IWorkload.

+ +

Definition at line 50 of file ClSliceWorkload.cpp.

+ +

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

+
51 {
52  ARMNN_SCOPED_PROFILING_EVENT_CL("ClSliceWorkload_Execute");
53  RunClFunction(m_SliceFunction, CHECK_LOCATION());
54 }
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1