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/_ref_elementwise_workload_8cpp_source.xhtml | 149 ++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 20.02/_ref_elementwise_workload_8cpp_source.xhtml (limited to '20.02/_ref_elementwise_workload_8cpp_source.xhtml') diff --git a/20.02/_ref_elementwise_workload_8cpp_source.xhtml b/20.02/_ref_elementwise_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..e470a53196 --- /dev/null +++ b/20.02/_ref_elementwise_workload_8cpp_source.xhtml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefElementwiseWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefElementwiseWorkload.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 
8 #include "Decoders.hpp"
10 #include "Encoders.hpp"
11 #include "Profiling.hpp"
12 #include "RefWorkloadUtils.hpp"
13 #include "StringMapping.hpp"
14 #include <ResolveType.hpp>
15 #include <vector>
16 
17 namespace armnn
18 {
19 
20 template <typename Functor, typename ParentDescriptor, typename armnn::StringMapping::Id DebugString>
22  const ParentDescriptor& desc,
23  const WorkloadInfo& info)
24  : BaseWorkload<ParentDescriptor>(desc, info)
25 {
26 }
27 
28 template <typename Functor, typename ParentDescriptor, typename armnn::StringMapping::Id DebugString>
30 {
31  const TensorInfo& inputInfo0 = GetTensorInfo(m_Data.m_Inputs[0]);
32  const TensorInfo& inputInfo1 = GetTensorInfo(m_Data.m_Inputs[1]);
33  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
34 
35  m_Input0 = MakeDecoder<InType>(inputInfo0);
36  m_Input1 = MakeDecoder<InType>(inputInfo1);
37  m_Output = MakeEncoder<OutType>(outputInfo);
38 }
39 
40 template <typename Functor, typename ParentDescriptor, typename armnn::StringMapping::Id DebugString>
42 {
44  const TensorInfo& inputInfo0 = GetTensorInfo(m_Data.m_Inputs[0]);
45  const TensorInfo& inputInfo1 = GetTensorInfo(m_Data.m_Inputs[1]);
46  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
47 
48  const TensorShape& inShape0 = inputInfo0.GetShape();
49  const TensorShape& inShape1 = inputInfo1.GetShape();
50  const TensorShape& outShape = outputInfo.GetShape();
51 
52  m_Input0->Reset(m_Data.m_Inputs[0]->Map());
53  m_Input1->Reset(m_Data.m_Inputs[1]->Map());
54  m_Output->Reset(m_Data.m_Outputs[0]->Map());
55 
57  inShape1,
58  outShape,
59  *m_Input0,
60  *m_Input1,
61  *m_Output);
62 }
63 
64 } //namespace armnn
65 
69 
73 
77 
81 
85 
+ + + +
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+
CPU Execution: Reference C++ kernels.
+ + + + + +
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
static const StringMapping & Instance()
+ + + +
Copyright (c) 2020 ARM Limited.
+ + + + + +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
+ + + + + +
RefElementwiseWorkload(const ParentDescriptor &descriptor, const WorkloadInfo &info)
+ + + + +
Contains information about inputs and outputs to a layer.
+ + +
+
+ + + + -- cgit v1.2.1