From 8efb48a6847c5cd166c561127ae6611150963ce3 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 May 2023 11:14:28 +0100 Subject: Update Doxygen docu for 23.05 Signed-off-by: Nikhil Raj Change-Id: I0a992286f14fa68fcc6e5eba31ac39fed003cbbe --- 23.05/_cl_slice_workload_8cpp_source.xhtml | 214 +++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 23.05/_cl_slice_workload_8cpp_source.xhtml (limited to '23.05/_cl_slice_workload_8cpp_source.xhtml') diff --git a/23.05/_cl_slice_workload_8cpp_source.xhtml b/23.05/_cl_slice_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..1ff4e196b8 --- /dev/null +++ b/23.05/_cl_slice_workload_8cpp_source.xhtml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClSliceWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClSliceWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "ClSliceWorkload.hpp"
+
7 
+
8 #include "ClWorkloadUtils.hpp"
+
9 
+ + +
12 
+
13 #include <cl/ClTensorHandle.hpp>
+
14 
+
15 namespace armnn
+
16 {
+
17 
+ +
19  const TensorInfo& output,
+
20  const SliceDescriptor& descriptor)
+
21 {
+
22  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
+
23  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
+
24 
+ + +
27 
+
28  std::tie(starts, ends) = SetClSliceData(descriptor.m_Begin, descriptor.m_Size);
+
29 
+
30  return arm_compute::CLSlice::validate(&aclInput, &aclOutput, starts, ends);
+
31 }
+
32 
+ +
34  const WorkloadInfo& info,
+
35  const arm_compute::CLCompileContext& clCompileContext)
+ +
37 {
+
38  // Report Profiling Details
+
39  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClSliceWorkload_Construct",
+
40  descriptor.m_Parameters,
+
41  info,
+
42  this->GetGuid());
+
43 
+
44  m_Data.ValidateInputsOutputs("ClSliceWorkload", 1, 1);
+
45 
+
46  arm_compute::ICLTensor& input = PolymorphicDowncast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
47  arm_compute::ICLTensor& output = PolymorphicDowncast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+
48 
+ + +
51 
+ +
53 
+
54  {
+
55  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClSliceWorkload_configure");
+
56  m_SliceFunction.configure(clCompileContext, &input, &output, starts, ends);
+
57  }
+
58 }
+
59 
+ +
61 {
+
62  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClSliceWorkload_Execute", this->GetGuid());
+
63  RunClFunction(m_SliceFunction, CHECK_LOCATION());
+
64 }
+
65 
+
66 } // namespace armnn
+
+
+
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:61
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
A SliceDescriptor for the SliceLayer.
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+ +
arm_compute::Status ClSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor)
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+
auto SetClSliceData(const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+
virtual void Execute() const override
+ +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
Status
Definition: Types.hpp:42
+ + + +
Contains information about TensorInfos of a layer.
+
std::vector< unsigned int > m_Size
Size of the slice in each dimension.
+ +
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+
std::vector< unsigned int > m_Begin
Beginning indices of the slice in each dimension.
+ +
std::vector< ITensorHandle * > m_Outputs
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
+ +
ClSliceWorkload(const SliceQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
std::vector< ITensorHandle * > m_Inputs
+ + + + + -- cgit v1.2.1