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_dequantize_workload_8cpp_source.xhtml | 134 ++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 21.02/_cl_dequantize_workload_8cpp_source.xhtml (limited to '21.02/_cl_dequantize_workload_8cpp_source.xhtml') diff --git a/21.02/_cl_dequantize_workload_8cpp_source.xhtml b/21.02/_cl_dequantize_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..8b595d0a54 --- /dev/null +++ b/21.02/_cl_dequantize_workload_8cpp_source.xhtml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClDequantizeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClDequantizeWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 #include "ClWorkloadUtils.hpp"
8 
12 
13 #include <arm_compute/core/Types.h>
14 
15 #include <cl/ClLayerSupport.hpp>
16 #include <cl/ClTensorHandle.hpp>
17 
18 namespace armnn
19 {
20 using namespace armcomputetensorutils;
21 
23 {
24  const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
25  const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
26 
27  return arm_compute::CLDequantizationLayer::validate(&aclInputInfo, &aclOutputInfo);
28 }
29 
31  const WorkloadInfo& workloadInfo,
32  const arm_compute::CLCompileContext& clCompileContext)
33  : BaseWorkload<DequantizeQueueDescriptor>(descriptor, workloadInfo)
34 {
35  m_Data.ValidateInputsOutputs("ClDequantizeWorkload", 1, 1);
36 
37  arm_compute::ICLTensor& input = armnn::PolymorphicPointerDowncast<IClTensorHandle>(
38  m_Data.m_Inputs[0])->GetTensor();
39 
40  arm_compute::ICLTensor& output = armnn::PolymorphicPointerDowncast<IClTensorHandle>(
41  m_Data.m_Outputs[0])->GetTensor();
42 
43  m_Layer.reset(new arm_compute::CLDequantizationLayer());
44  m_Layer->configure(clCompileContext, &input, &output);
45  m_Layer->prepare();
46 }
47 
49 {
50  if (m_Layer)
51  {
52  ARMNN_SCOPED_PROFILING_EVENT_CL("ClDequantizeWorkload_Execute");
53  m_Layer->run();
54  }
55 }
56 
57 } // namespace armnn
arm_compute::Status ClDequantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+ +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
const DequantizeQueueDescriptor 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.
+ + +
Status
enumeration
Definition: Types.hpp:26
+ + +
std::vector< ITensorHandle * > m_Outputs
+ +
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ +
ClDequantizeWorkload(const DequantizeQueueDescriptor &descriptor, const WorkloadInfo &workloadInfo, const arm_compute::CLCompileContext &clCompileContext)
+ + +
+
+ + + + -- cgit v1.2.1