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_constant_workload_8cpp_source.xhtml | 133 +++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 20.02/_ref_constant_workload_8cpp_source.xhtml (limited to '20.02/_ref_constant_workload_8cpp_source.xhtml') diff --git a/20.02/_ref_constant_workload_8cpp_source.xhtml b/20.02/_ref_constant_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..31706a11c3 --- /dev/null +++ b/20.02/_ref_constant_workload_8cpp_source.xhtml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefConstantWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefConstantWorkload.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 "RefWorkloadUtils.hpp"
9 
10 #include <armnn/Types.hpp>
11 
12 #include <boost/assert.hpp>
13 
14 #include <cstring>
15 
16 namespace armnn
17 {
18 
20  const ConstantQueueDescriptor& descriptor, const WorkloadInfo& info)
21  : BaseWorkload<ConstantQueueDescriptor>(descriptor, info) {}
22 
24 {
25  const ConstantQueueDescriptor& data = this->m_Data;
26 
27  BOOST_ASSERT(data.m_LayerOutput != nullptr);
28 
29  const TensorInfo& outputInfo = GetTensorInfo(data.m_Outputs[0]);
30  BOOST_ASSERT(data.m_LayerOutput->GetTensorInfo().GetNumBytes() == outputInfo.GetNumBytes());
31 
32  memcpy(GetOutputTensorData<void>(0, data), data.m_LayerOutput->GetConstTensor<void>(),
33  outputInfo.GetNumBytes());
34 }
35 
37 {
38  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefConstantWorkload_Execute");
39 }
40 
41 } //namespace armnn
CPU Execution: Reference C++ kernels.
+ + + + +
const ConstantQueueDescriptor m_Data
Definition: Workload.hpp:46
+
unsigned int GetNumBytes() const
Definition: Tensor.cpp:213
+
const ConstCpuTensorHandle * m_LayerOutput
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
const T * GetConstTensor() const
+
Copyright (c) 2020 ARM Limited.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
+ + + +
virtual void Execute() const override
+
std::vector< ITensorHandle * > m_Outputs
+
RefConstantWorkload(const ConstantQueueDescriptor &descriptor, const WorkloadInfo &info)
+
Contains information about inputs and outputs to a layer.
+
const TensorInfo & GetTensorInfo() const
+
+
+ + + + -- cgit v1.2.1