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/_neon_base_workload_8hpp_source.xhtml | 129 ++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 22.02/_neon_base_workload_8hpp_source.xhtml (limited to '22.02/_neon_base_workload_8hpp_source.xhtml') diff --git a/22.02/_neon_base_workload_8hpp_source.xhtml b/22.02/_neon_base_workload_8hpp_source.xhtml new file mode 100644 index 0000000000..53553576a0 --- /dev/null +++ b/22.02/_neon_base_workload_8hpp_source.xhtml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonBaseWorkload.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
NeonBaseWorkload.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 template <typename QueueDescriptor>
13 class NeonBaseWorkload : public BaseWorkload<QueueDescriptor>
14 {
15 public:
17  : BaseWorkload<QueueDescriptor>(descriptor, info)
18  {}
19 
20  // Replace input tensor handle with the given TensorHandle and call Reconfigure()
21  void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override
22  {
23  ITensorHandle* backupHandle = this->m_Data.m_Inputs[slot];
24  this->m_Data.m_Inputs[slot] = tensorHandle;
25  try
26  {
27  Reconfigure();
28  }
30  {
31  // Cannot reconfigure, revert the slot back and throw the exception.
32  this->m_Data.m_Inputs[slot] = backupHandle;
33  throw e;
34  }
35  }
36 
37  // Replace output tensor handle with the given TensorHandle and call Reconfigure()
38  void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override
39  {
40  ITensorHandle* backupHandle = this->m_Data.m_Outputs[slot];
41  this->m_Data.m_Outputs[slot] = tensorHandle;
42  try
43  {
44  Reconfigure();
45  }
47  {
48  // Cannot reconfigure, revert the slot back and throw the exception.
49  this->m_Data.m_Inputs[slot] = backupHandle;
50  throw e;
51  }
52  }
53 
54 protected:
55  // Reconfigure the workload configuration. Throw armnn::UnimplementedException by default.
56  virtual void Reconfigure()
57  {
58  throw armnn::UnimplementedException("Reconfigure not implemented for this workload");
59  }
60 };
61 } //namespace armnn
NeonBaseWorkload(const QueueDescriptor &descriptor, const WorkloadInfo &info)
+ + + +
Copyright (c) 2021 ARM Limited and Contributors.
+
void ReplaceInputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
+ + + +
QueueDescriptor m_Data
Definition: Workload.hpp:77
+ +
std::vector< ITensorHandle * > m_Outputs
+ +
Contains information about TensorInfos of a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
void ReplaceOutputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
+
+
+ + + + -- cgit v1.2.1