From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_ref_constant_workload_8cpp_source.xhtml | 135 +++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 21.02/_ref_constant_workload_8cpp_source.xhtml (limited to '21.02/_ref_constant_workload_8cpp_source.xhtml') diff --git a/21.02/_ref_constant_workload_8cpp_source.xhtml b/21.02/_ref_constant_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..b4252d54b6 --- /dev/null +++ b/21.02/_ref_constant_workload_8cpp_source.xhtml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefConstantWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.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 <armnn/utility/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  ARMNN_ASSERT(data.m_LayerOutput != nullptr);
28 
29  const TensorInfo& outputInfo = GetTensorInfo(data.m_Outputs[0]);
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:418
+
const ConstCpuTensorHandle * m_LayerOutput
+
const T * GetConstTensor() const
+
Copyright (c) 2021 ARM Limited and Contributors.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
+ + + +
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
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 ITensorHandle *tensorHandle)
float32 helpers
+
const TensorInfo & GetTensorInfo() const
+
+
+ + + + -- cgit v1.2.1