From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/_ref_stack_workload_8cpp_source.xhtml | 136 ++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 22.02/_ref_stack_workload_8cpp_source.xhtml (limited to '22.02/_ref_stack_workload_8cpp_source.xhtml') diff --git a/22.02/_ref_stack_workload_8cpp_source.xhtml b/22.02/_ref_stack_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..81b0659966 --- /dev/null +++ b/22.02/_ref_stack_workload_8cpp_source.xhtml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefStackWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefStackWorkload.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 "RefStackWorkload.hpp"
7 
8 #include "RefWorkloadUtils.hpp"
9 #include "Stack.hpp"
10 
11 #include <Profiling.hpp>
12 
13 namespace armnn
14 {
15 
17  const WorkloadInfo& info)
18  : RefBaseWorkload(descriptor, info)
19 {}
20 
22 {
24 }
25 
27 {
28  Execute(workingMemDescriptor.m_Inputs, workingMemDescriptor.m_Outputs);
29 }
30 
31 void RefStackWorkload::Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const
32 {
33  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefStackWorkload_Execute");
34 
35  const TensorInfo& inputInfo = GetTensorInfo(inputs[0]);
36  const TensorInfo& outputInfo = GetTensorInfo(outputs[0]);
37 
38  std::vector<std::unique_ptr<Decoder<float>>> inputDecoders;
39  for (unsigned int i=0; i<inputs.size(); ++i)
40  {
41  inputDecoders.push_back(MakeDecoder<float>(GetTensorInfo(inputs[i]),
42  inputs[i]->Map()));
43  }
44  std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(GetTensorInfo(outputs[0]),
45  outputs[0]->Map());
46 
47  Stack(m_Data, inputDecoders, *outputEncoder, inputInfo, outputInfo);
48 }
49 
50 } // namespace armnn
CPU Execution: Reference C++ kernels.
+ + + + + +
Copyright (c) 2021 ARM Limited and Contributors.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+
void ExecuteAsync(WorkingMemDescriptor &workingMemDescriptor) override
+ + +
RefStackWorkload(const StackQueueDescriptor &descriptor, const WorkloadInfo &info)
+ + + + +
std::vector< ITensorHandle * > m_Outputs
+ +
void Execute() const override
+
Contains information about TensorInfos of a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+ +
+
+ + + + -- cgit v1.2.1