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 --- ...convert_fp16_to_fp32_workload_8cpp_source.xhtml | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 20.02/_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml (limited to '20.02/_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml') diff --git a/20.02/_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml b/20.02/_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..3de8ee9e41 --- /dev/null +++ b/20.02/_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonConvertFp16ToFp32Workload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
NeonConvertFp16ToFp32Workload.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 
9 
10 #include <Half.hpp>
11 
13 
14 namespace armnn
15 {
16 
18  const WorkloadInfo& info)
20 {
21  this->m_Data.ValidateInputsOutputs("NeonConvertFp16ToFp32Workload", 1, 1);
22  GatherTensorHandlePairs(descriptor, m_TensorHandlePairs);
23 }
24 
26 {
27  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonConvertFp16ToFp32Workload_Execute");
28 
29  auto convertFunc = [](uint8_t* dst, const uint8_t* src, size_t size)
30  {
31  auto input = reinterpret_cast<const Half*>(src);
32  auto output = reinterpret_cast<float*>(dst);
33  size_t numElements = size/2; // 2 bytes per fp16
35  };
36 
37  for (const auto& pair : m_TensorHandlePairs)
38  {
39  CopyTensorContentsGeneric(pair.first, pair.second, convertFunc);
40  }
41 }
42 
43 } //namespace armnn
+ +
const QueueDescriptor 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.
+ + +
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+ +
NeonConvertFp16ToFp32Workload(const ConvertFp16ToFp32QueueDescriptor &descriptor, const WorkloadInfo &info)
+ +
Contains information about inputs and outputs to a layer.
+
void CopyTensorContentsGeneric(const ITensorHandle *srcTensor, ITensorHandle *dstTensor, CopyFunc copy)
+
void GatherTensorHandlePairs(const DescriptorType &descriptor, std::vector< std::pair< SrcTensorHandleType *, DstTensorHandleType *>> &tensorHandlePairs)
+
half_float::half Half
Definition: Half.hpp:16
+ +
+
+ + + + -- cgit v1.2.1