From de36e4a9c299028e792c3a5bd99ad0816d806077 Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Fri, 13 Mar 2020 16:26:19 +0000 Subject: IVGCVSW-3726 Upload ArmNN Doxygen files * Upload current ArmNN Doxygen files Signed-off-by: Ryan OShea Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285 --- Documentation/_ref_pad_workload_8cpp_source.html | 113 +++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 Documentation/_ref_pad_workload_8cpp_source.html (limited to 'Documentation/_ref_pad_workload_8cpp_source.html') diff --git a/Documentation/_ref_pad_workload_8cpp_source.html b/Documentation/_ref_pad_workload_8cpp_source.html new file mode 100644 index 0000000000..4563725adf --- /dev/null +++ b/Documentation/_ref_pad_workload_8cpp_source.html @@ -0,0 +1,113 @@ + + + + + + + +ArmNN: src/backends/reference/workloads/RefPadWorkload.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
ArmNN +  NotReleased +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefPadWorkload.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 "RefPadWorkload.hpp"
7 
8 #include "Pad.hpp"
9 #include "RefWorkloadUtils.hpp"
10 
11 #include "Profiling.hpp"
12 
13 #include <ResolveType.hpp>
14 
15 #include <vector>
16 
17 namespace armnn
18 {
19 
20 template <armnn::DataType DataType>
22 {
23  using T = ResolveType<DataType>;
24 
25  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefPadWorkload_Execute");
26 
27  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
28  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
29 
30  const T* inputData = GetInputTensorData<T>(0, m_Data);
31  T* outputData = GetOutputTensorData<T>(0, m_Data);
32 
33  Pad(inputInfo, outputInfo, m_Data.m_Parameters.m_PadList, inputData, outputData, m_Data.m_Parameters.m_PadValue);
34 }
35 
40 
41 } //namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:170
+ + +
typename ResolveTypeImpl< DT >::Type ResolveType
Definition: ResolveType.hpp:66
+ +
void Pad(const TensorInfo &inputInfo, const TensorInfo &outputInfo, std::vector< std::pair< unsigned int, unsigned int >> m_padList, const T *inputData, T *outData, const float padValue)
Definition: Pad.cpp:22
+
void Execute() const override
+ + +
CPU Execution: Reference C++ kernels.
+ + +
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+ +
+
+ + + + -- cgit v1.2.1