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_rsqrt_workload_8cpp_source.xhtml | 189 +++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 23.05/_cl_rsqrt_workload_8cpp_source.xhtml (limited to '23.05/_cl_rsqrt_workload_8cpp_source.xhtml') diff --git a/23.05/_cl_rsqrt_workload_8cpp_source.xhtml b/23.05/_cl_rsqrt_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..95e50c0581 --- /dev/null +++ b/23.05/_cl_rsqrt_workload_8cpp_source.xhtml @@ -0,0 +1,189 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClRsqrtWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClRsqrtWorkload.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 "ClRsqrtWorkload.hpp"
+
7 
+
8 #include "ClWorkloadUtils.hpp"
+
9 
+ + +
12 
+
13 #include <cl/ClTensorHandle.hpp>
+
14 
+
15 namespace armnn
+
16 {
+
17 
+ +
19 {
+
20  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
+
21  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
+
22 
+
23  return arm_compute::CLRsqrtLayer::validate(&aclInput, &aclOutput);
+
24 }
+
25 
+ +
27  const WorkloadInfo& info,
+
28  const arm_compute::CLCompileContext& clCompileContext)
+ +
30 {
+
31  m_Data.ValidateInputsOutputs("ClRsqrtWorkload", 1, 1);
+
32 
+
33  arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
34  arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+
35 
+
36  {
+
37  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClRsqrtWorkload_configure");
+
38  m_RsqrtLayer.configure(clCompileContext, &input, &output);
+
39  }
+
40 }
+
41 
+ +
43 {
+
44  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClRsqrtWorkload_Execute", this->GetGuid());
+
45  RunClFunction(m_RsqrtLayer, CHECK_LOCATION());
+
46 }
+
47 
+
48 } // 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
+ + + +
virtual void Execute() const override
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+ + +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
Status
Definition: Types.hpp:42
+ + +
Contains information about TensorInfos of a layer.
+ +
std::vector< ITensorHandle * > m_Outputs
+
ClRsqrtWorkload(const RsqrtQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
arm_compute::Status ClRsqrtWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+ +
std::vector< ITensorHandle * > m_Inputs
+ + + + + -- cgit v1.2.1