From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- 21.11/_cl_quantize_workload_8cpp_source.xhtml | 141 ++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 21.11/_cl_quantize_workload_8cpp_source.xhtml (limited to '21.11/_cl_quantize_workload_8cpp_source.xhtml') diff --git a/21.11/_cl_quantize_workload_8cpp_source.xhtml b/21.11/_cl_quantize_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..b58c4472b3 --- /dev/null +++ b/21.11/_cl_quantize_workload_8cpp_source.xhtml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClQuantizeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClQuantizeWorkload.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 "ClQuantizeWorkload.hpp"
7 #include "ClWorkloadUtils.hpp"
8 
11 
13 
14 #include <cl/ClLayerSupport.hpp>
15 #include <cl/ClTensorHandle.hpp>
16 #include <cl/ClLayerSupport.hpp>
17 
18 namespace armnn
19 {
20 using namespace armcomputetensorutils;
21 
23  const TensorInfo& output)
24 {
25  const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
26  const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
27 
28  return arm_compute::CLQuantizationLayer::validate(&aclInputInfo,
29  &aclOutputInfo);
30 }
31 
33  const WorkloadInfo& info,
34  const arm_compute::CLCompileContext& clCompileContext)
35  : BaseWorkload<QuantizeQueueDescriptor>(descriptor, info)
36 {
37  m_Data.ValidateInputsOutputs("ClQuantizeWorkload", 1, 1);
38 
39  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
40  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
41 
42  {
43  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClQuantizeWorkload_configure");
44  m_Layer.configure(clCompileContext, &input, &output);
45  }
46 }
47 
49 {
50  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClQuantizeWorkload_Execute", this->GetGuid());
51  RunClFunction(m_Layer, CHECK_LOCATION());
52 }
53 
54 } //namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+ + + + +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+ +
ClQuantizeWorkload(const QuantizeQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+ + + +
Status
enumeration
Definition: Types.hpp:29
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:209
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+ + +
std::vector< ITensorHandle * > m_Outputs
+ + +
Contains information about TensorInfos of a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
void Execute() const override
+ +
arm_compute::Status ClQuantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+ +
+
+ + + + -- cgit v1.2.1