From 8d2ca734165a068478df7cffa46185680b05cd20 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 24 Feb 2023 10:28:19 +0000 Subject: Update Doxygen docu for 23.02 Signed-off-by: Nikhil Raj Change-Id: Ie6c19a27d50fefab2796b2b5875374e81f5bf971 --- ...dynamic_tensor_handle_factory_8cpp_source.xhtml | 133 +++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 23.02/_sample_dynamic_tensor_handle_factory_8cpp_source.xhtml (limited to '23.02/_sample_dynamic_tensor_handle_factory_8cpp_source.xhtml') diff --git a/23.02/_sample_dynamic_tensor_handle_factory_8cpp_source.xhtml b/23.02/_sample_dynamic_tensor_handle_factory_8cpp_source.xhtml new file mode 100644 index 0000000000..a54f3ae035 --- /dev/null +++ b/23.02/_sample_dynamic_tensor_handle_factory_8cpp_source.xhtml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + +ArmNN: src/dynamic/sample/SampleDynamicTensorHandleFactory.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
SampleDynamicTensorHandleFactory.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 #include "SampleTensorHandle.hpp"
8 
10 
11 namespace sdb // sample dynamic backend
12 {
13 
15 
17 {
18  static const FactoryId s_Id(SampleDynamicTensorHandleFactoryId());
19  return s_Id;
20 }
21 
22 std::unique_ptr<armnn::ITensorHandle>
24  armnn::TensorShape const& subTensorShape,
25  unsigned int const* subTensorOrigin) const
26 {
27  IgnoreUnused(parent, subTensorShape, subTensorOrigin);
28  return nullptr;
29 }
30 
31 std::unique_ptr<armnn::ITensorHandle> SampleDynamicTensorHandleFactory::CreateTensorHandle(
32  const armnn::TensorInfo& tensorInfo) const
33 {
34  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
35 }
36 
37 std::unique_ptr<armnn::ITensorHandle> SampleDynamicTensorHandleFactory::CreateTensorHandle(
38  const armnn::TensorInfo& tensorInfo,
39  armnn::DataLayout dataLayout) const
40 {
41  IgnoreUnused(dataLayout);
42  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
43 }
44 
45 std::unique_ptr<armnn::ITensorHandle> SampleDynamicTensorHandleFactory::CreateTensorHandle(
46  const armnn::TensorInfo& tensorInfo,
47  const bool IsMemoryManaged) const
48 {
49  if (IsMemoryManaged)
50  {
51  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
52  }
53  else
54  {
55  return std::make_unique<SampleTensorHandle>(tensorInfo, m_ImportFlags);
56  }
57 }
58 
59 std::unique_ptr<armnn::ITensorHandle> SampleDynamicTensorHandleFactory::CreateTensorHandle(
60  const armnn::TensorInfo& tensorInfo,
61  armnn::DataLayout dataLayout,
62  const bool IsMemoryManaged) const
63 {
64  IgnoreUnused(dataLayout);
65  if (IsMemoryManaged)
66  {
67  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
68  }
69  else
70  {
71  return std::make_unique<SampleTensorHandle>(tensorInfo, m_ImportFlags);
72  }
73 }
74 
76 {
77  return GetIdStatic();
78 }
79 
81 {
82  return false;
83 }
84 
86 {
87  return m_ExportFlags;
88 }
89 
91 {
92  return m_ImportFlags;
93 }
94 
95 } // namespace sdb
+
DataLayout
Definition: Types.hpp:62
+ + + +
unsigned int MemorySourceFlags
+
void IgnoreUnused(Ts &&...)
+ +
std::unique_ptr< armnn::ITensorHandle > CreateSubTensorHandle(armnn::ITensorHandle &parent, armnn::TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const override
+ +
armnn::MemorySourceFlags GetExportFlags() const override
+ + +
armnn::ITensorHandleFactory::FactoryId FactoryId
+
constexpr const char * SampleDynamicTensorHandleFactoryId()
+
armnn::MemorySourceFlags GetImportFlags() const override
+ + + +
std::unique_ptr< armnn::ITensorHandle > CreateTensorHandle(const armnn::TensorInfo &tensorInfo) const override
+
+
+ + + + -- cgit v1.2.1