From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_cl_abs_workload_8cpp_source.xhtml | 134 +++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 21.02/_cl_abs_workload_8cpp_source.xhtml (limited to '21.02/_cl_abs_workload_8cpp_source.xhtml') diff --git a/21.02/_cl_abs_workload_8cpp_source.xhtml b/21.02/_cl_abs_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..3743fd01a8 --- /dev/null +++ b/21.02/_cl_abs_workload_8cpp_source.xhtml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClAbsWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClAbsWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "ClAbsWorkload.hpp"
7 
8 #include "ClWorkloadUtils.hpp"
9 
11 
13 
14 #include <cl/ClTensorHandle.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::CLAbsLayer::validate(&aclInput, &aclOutput);
25 }
26 
28  const WorkloadInfo& info,
29  const arm_compute::CLCompileContext& clCompileContext)
30  : BaseWorkload<AbsQueueDescriptor>(descriptor, info)
31 {
32  m_Data.ValidateInputsOutputs("ClAbsWorkload", 1, 1);
33 
34  arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
35  arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
36 
37  m_AbsLayer.configure(clCompileContext, &input, &output);
38 }
39 
41 {
42  ARMNN_SCOPED_PROFILING_EVENT_CL("ClAbsWorkload_Execute");
43  RunClFunction(m_AbsLayer, CHECK_LOCATION());
44 }
45 
46 } // namespace armnn
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const AbsQueueDescriptor m_Data
Definition: Workload.hpp:46
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + +
virtual void Execute() const override
+ + +
Status
enumeration
Definition: Types.hpp:26
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
ClAbsWorkload(const AbsQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+ +
std::vector< ITensorHandle * > m_Outputs
+
arm_compute::Status ClAbsWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ +
+
+ + + + -- cgit v1.2.1