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/_neon_quantize_workload_8cpp_source.xhtml | 131 ++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 20.02/_neon_quantize_workload_8cpp_source.xhtml (limited to '20.02/_neon_quantize_workload_8cpp_source.xhtml') diff --git a/20.02/_neon_quantize_workload_8cpp_source.xhtml b/20.02/_neon_quantize_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..b7310cff4e --- /dev/null +++ b/20.02/_neon_quantize_workload_8cpp_source.xhtml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonQuantizeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
NeonQuantizeWorkload.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 "NeonWorkloadUtils.hpp"
8 
11 #include <arm_compute/core/Types.h>
12 
13 #include <boost/polymorphic_pointer_cast.hpp>
14 
15 namespace armnn
16 {
17 using namespace armcomputetensorutils;
18 
20 {
21  const arm_compute::TensorInfo neonInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22  const arm_compute::TensorInfo neonOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
23 
24  return arm_compute::NEQuantizationLayer::validate(&neonInputInfo, &neonOutputInfo);
25 }
26 
28  const WorkloadInfo& workloadInfo)
29  : BaseWorkload<QuantizeQueueDescriptor>(descriptor, workloadInfo)
30 {
31  m_Data.ValidateInputsOutputs("NeonQuantizeWorkload", 1, 1);
32 
33  arm_compute::ITensor& input = boost::polymorphic_pointer_downcast<IAclTensorHandle>(
34  m_Data.m_Inputs[0])->GetTensor();
35  arm_compute::ITensor& output = boost::polymorphic_pointer_downcast<IAclTensorHandle>(
36  m_Data.m_Outputs[0])->GetTensor();
37 
38  m_Layer.reset(new arm_compute::NEQuantizationLayer());
39  m_Layer->configure(&input, &output);
40  m_Layer->prepare();
41 }
42 
44 {
45  if (m_Layer)
46  {
47  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonQuantizeWorkload_Execute");
48  m_Layer->run();
49  }
50 }
51 
52 } // namespace armnn
+ +
const QuantizeQueueDescriptor m_Data
Definition: Workload.hpp:46
+
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
+ + +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2020 ARM Limited.
+
arm_compute::Status NeonQuantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+ + +
Status
enumeration
Definition: Types.hpp:26
+ +
std::vector< ITensorHandle * > m_Outputs
+
NeonQuantizeWorkload(const QuantizeQueueDescriptor &descriptor, const WorkloadInfo &workloadInfo)
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ +
+
+ + + + -- cgit v1.2.1