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_permute_workload_8cpp_source.xhtml | 208 +++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 23.05/_cl_permute_workload_8cpp_source.xhtml (limited to '23.05/_cl_permute_workload_8cpp_source.xhtml') diff --git a/23.05/_cl_permute_workload_8cpp_source.xhtml b/23.05/_cl_permute_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..fbe4c0aeb8 --- /dev/null +++ b/23.05/_cl_permute_workload_8cpp_source.xhtml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClPermuteWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClPermuteWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "ClPermuteWorkload.hpp"
+
7 #include <cl/ClTensorHandle.hpp>
+ +
9 
+
10 #include <arm_compute/core/Error.h>
+
11 
+
12 #include "ClWorkloadUtils.hpp"
+
13 
+
14 namespace armnn
+
15 {
+
16 
+ +
18  const TensorInfo& output,
+
19  const PermuteDescriptor& descriptor)
+
20 {
+
21  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
+
22  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
+
23  const armnn::PermutationVector& mappings = descriptor.m_DimMappings;
+
24 
+
25  return arm_compute::CLPermute::validate(&aclInputInfo, &aclOutputInfo,
+
26  armcomputetensorutils::BuildArmComputePermutationVector(mappings));
+
27 }
+
28 
+ +
30  const WorkloadInfo& info,
+
31  const arm_compute::CLCompileContext& clCompileContext)
+ +
33 {
+
34  // Report Profiling Details
+
35  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClPermuteWorkload_Construct",
+
36  descriptor.m_Parameters,
+
37  info,
+
38  this->GetGuid());
+
39 
+
40  using armcomputetensorutils::BuildArmComputePermutationVector;
+
41 
+ +
43 
+
44  const arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
45  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+ +
47 
+
48  {
+
49  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClPermuteWorkload_configure");
+
50  // Run the layer.
+
51  m_PermuteFunction.configure(clCompileContext, &input, &output, BuildArmComputePermutationVector(mappings));
+
52  }
+
53 }
+
54 
+ +
56 {
+
57  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(GetName() + "_Execute", this->GetGuid());
+
58  RunClFunction(m_PermuteFunction, CHECK_LOCATION());
+
59 }
+
60 
+
61 } // 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
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+ +
PermutationVector m_DimMappings
Indicates how to translate tensor elements from a given source into the target destination,...
+
arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor)
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+ +
static const std::string & GetName()
+ +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
Status
Definition: Types.hpp:42
+ + +
ClPermuteWorkload(const PermuteQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
Contains information about TensorInfos of a layer.
+ + +
A PermuteDescriptor for the PermuteLayer.
+
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+ +
std::vector< ITensorHandle * > m_Outputs
+
void Execute() const override
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+ +
std::vector< ITensorHandle * > m_Inputs
+ + + + + -- cgit v1.2.1