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_quantize_workload_8cpp_source.xhtml | 138 ++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 20.02/_cl_quantize_workload_8cpp_source.xhtml (limited to '20.02/_cl_quantize_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_quantize_workload_8cpp_source.xhtml b/20.02/_cl_quantize_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..6a0869e706 --- /dev/null +++ b/20.02/_cl_quantize_workload_8cpp_source.xhtml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClQuantizeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
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  : BaseWorkload<QuantizeQueueDescriptor>(descriptor, info)
34 {
35  m_Data.ValidateInputsOutputs("ClQuantizeWorkload", 1, 1);
36 
37  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
38  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
39 
40  m_Layer.configure(&input, &output);
41 }
42 
44 {
45  ARMNN_SCOPED_PROFILING_EVENT_CL("ClQuantizeWorkload_Execute");
46  RunClFunction(m_Layer, CHECK_LOCATION());
47 }
48 
49 } //namespace armnn
+ + +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const QuantizeQueueDescriptor 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
+ + +
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
void Execute() const override
+ +
arm_compute::Status ClQuantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
ClQuantizeWorkload(const QuantizeQueueDescriptor &descriptor, const WorkloadInfo &info)
+ +
+
+ + + + -- cgit v1.2.1