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/_cl_rsqrt_workload_8cpp_source.xhtml | 133 +++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 20.02/_cl_rsqrt_workload_8cpp_source.xhtml (limited to '20.02/_cl_rsqrt_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_rsqrt_workload_8cpp_source.xhtml b/20.02/_cl_rsqrt_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..b5850f3bd8 --- /dev/null +++ b/20.02/_cl_rsqrt_workload_8cpp_source.xhtml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClRsqrtWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClRsqrtWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "ClRsqrtWorkload.hpp"
7 
8 #include "ClWorkloadUtils.hpp"
9 
11 
12 #include <cl/ClTensorHandle.hpp>
13 
14 #include <boost/cast.hpp>
15 
16 namespace armnn
17 {
18 
20 {
21  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
23 
24  return arm_compute::CLRsqrtLayer::validate(&aclInput, &aclOutput);
25 }
26 
28  : BaseWorkload<RsqrtQueueDescriptor>(descriptor, info)
29 {
30  m_Data.ValidateInputsOutputs("ClRsqrtWorkload", 1, 1);
31 
32  arm_compute::ICLTensor& input = boost::polymorphic_downcast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
33  arm_compute::ICLTensor& output = boost::polymorphic_downcast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
34 
35  m_RsqrtLayer.configure(&input, &output);
36 }
37 
39 {
40  ARMNN_SCOPED_PROFILING_EVENT_CL("ClRsqrtWorkload_Execute");
41  RunClFunction(m_RsqrtLayer, CHECK_LOCATION());
42 }
43 
44 } // namespace armnn
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const RsqrtQueueDescriptor m_Data
Definition: Workload.hpp:46
+ + +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2020 ARM Limited.
+ +
Status
enumeration
Definition: Types.hpp:26
+ +
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
+ +
std::vector< ITensorHandle * > m_Outputs
+
virtual void Execute() const override
+
ClRsqrtWorkload(const RsqrtQueueDescriptor &descriptor, const WorkloadInfo &info)
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ +
arm_compute::Status ClRsqrtWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+ + + + -- cgit v1.2.1