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_dequantize_workload_8cpp_source.xhtml | 133 ++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 20.02/_cl_dequantize_workload_8cpp_source.xhtml (limited to '20.02/_cl_dequantize_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_dequantize_workload_8cpp_source.xhtml b/20.02/_cl_dequantize_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..bccabf140c --- /dev/null +++ b/20.02/_cl_dequantize_workload_8cpp_source.xhtml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClDequantizeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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 
11 
12 #include <arm_compute/core/Types.h>
13 
14 #include <cl/ClLayerSupport.hpp>
15 #include <cl/ClTensorHandle.hpp>
16 
17 #include <boost/polymorphic_pointer_cast.hpp>
18 
19 namespace armnn
20 {
21 using namespace armcomputetensorutils;
22 
24 {
25  const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
26  const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
27 
28  return arm_compute::CLDequantizationLayer::validate(&aclInputInfo, &aclOutputInfo);
29 }
30 
32  const WorkloadInfo& workloadInfo)
33  : BaseWorkload<DequantizeQueueDescriptor>(descriptor, workloadInfo)
34 {
35  m_Data.ValidateInputsOutputs("ClDequantizeWorkload", 1, 1);
36 
37  arm_compute::ICLTensor& input = boost::polymorphic_pointer_downcast<IClTensorHandle>(
38  m_Data.m_Inputs[0])->GetTensor();
39 
40  arm_compute::ICLTensor& output = boost::polymorphic_pointer_downcast<IClTensorHandle>(
41  m_Data.m_Outputs[0])->GetTensor();
42 
43  m_Layer.reset(new arm_compute::CLDequantizationLayer());
44  m_Layer->configure(&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) 2020 ARM Limited.
+
ClDequantizeWorkload(const DequantizeQueueDescriptor &descriptor, const WorkloadInfo &workloadInfo)
+ +
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
+ + + +
+
+ + + + -- cgit v1.2.1