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 --- ..._1_1_sample_dynamic_tensor_handle_factory.xhtml | 598 +++++++++++++++++++++ 1 file changed, 598 insertions(+) create mode 100644 21.02/classsdb_1_1_sample_dynamic_tensor_handle_factory.xhtml (limited to '21.02/classsdb_1_1_sample_dynamic_tensor_handle_factory.xhtml') diff --git a/21.02/classsdb_1_1_sample_dynamic_tensor_handle_factory.xhtml b/21.02/classsdb_1_1_sample_dynamic_tensor_handle_factory.xhtml new file mode 100644 index 0000000000..740f41bb54 --- /dev/null +++ b/21.02/classsdb_1_1_sample_dynamic_tensor_handle_factory.xhtml @@ -0,0 +1,598 @@ + + + + + + + + + + + + + +ArmNN: SampleDynamicTensorHandleFactory Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SampleDynamicTensorHandleFactory Class Reference
+
+
+ +

#include <SampleDynamicTensorHandleFactory.hpp>

+
+Inheritance diagram for SampleDynamicTensorHandleFactory:
+
+
+ + +ITensorHandleFactory + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 SampleDynamicTensorHandleFactory (std::shared_ptr< SampleMemoryManager > mgr)
 
std::unique_ptr< armnn::ITensorHandleCreateSubTensorHandle (armnn::ITensorHandle &parent, armnn::TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const override
 
std::unique_ptr< armnn::ITensorHandleCreateTensorHandle (const armnn::TensorInfo &tensorInfo) const override
 
std::unique_ptr< armnn::ITensorHandleCreateTensorHandle (const armnn::TensorInfo &tensorInfo, armnn::DataLayout dataLayout) const override
 
std::unique_ptr< armnn::ITensorHandleCreateTensorHandle (const armnn::TensorInfo &tensorInfo, const bool IsMemoryManaged) const override
 Utility Functions for backends which require TensorHandles to have unmanaged memory. More...
 
std::unique_ptr< armnn::ITensorHandleCreateTensorHandle (const armnn::TensorInfo &tensorInfo, armnn::DataLayout dataLayout, const bool IsMemoryManaged) const override
 
const FactoryIdGetId () const override
 
bool SupportsSubTensors () const override
 
armnn::MemorySourceFlags GetExportFlags () const override
 
armnn::MemorySourceFlags GetImportFlags () const override
 
- Public Member Functions inherited from ITensorHandleFactory
virtual ~ITensorHandleFactory ()
 Some TensorHandleFactory decisions are deferred to run-time. More...
 
virtual bool SupportsInPlaceComputation () const
 
virtual bool SupportsMapUnmap () const final
 
virtual std::vector< CapabilityGetCapabilities (const IConnectableLayer *layer, const IConnectableLayer *connectedLayer, CapabilityClass capabilityClass)
 
+ + + +

+Static Public Member Functions

static const FactoryIdGetIdStatic ()
 
+ + + + + + + + + + +

+Additional Inherited Members

- Public Types inherited from ITensorHandleFactory
using FactoryId = std::string
 
- Static Public Attributes inherited from ITensorHandleFactory
static const FactoryId LegacyFactoryId = "armnn_legacy_factory"
 
static const FactoryId DeferredFactoryId = "armnn_deferred_factory"
 Use the workload factory to create the tensor handle. More...
 
+

Detailed Description

+
+

Definition at line 17 of file SampleDynamicTensorHandleFactory.hpp.

+

Constructor & Destructor Documentation

+ +

◆ SampleDynamicTensorHandleFactory()

+ + +

Member Function Documentation

+ +

◆ CreateSubTensorHandle()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
std::unique_ptr< armnn::ITensorHandle > CreateSubTensorHandle (armnn::ITensorHandleparent,
armnn::TensorShape const & subTensorShape,
unsigned int const * subTensorOrigin 
) const
+
+overridevirtual
+
+ +

Implements ITensorHandleFactory.

+ +

Definition at line 23 of file SampleDynamicTensorHandleFactory.cpp.

+ +

References armnn::IgnoreUnused().

+ +

Referenced by SampleDynamicTensorHandleFactory::SampleDynamicTensorHandleFactory().

+
26 {
27  IgnoreUnused(parent, subTensorShape, subTensorOrigin);
28  return nullptr;
29 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ CreateTensorHandle() [1/4]

+ +
+
+ + + + + +
+ + + + + + + + +
std::unique_ptr< armnn::ITensorHandle > CreateTensorHandle (const armnn::TensorInfotensorInfo) const
+
+overridevirtual
+
+ +

Implements ITensorHandleFactory.

+ +

Definition at line 31 of file SampleDynamicTensorHandleFactory.cpp.

+ +

Referenced by SampleDynamicTensorHandleFactory::SampleDynamicTensorHandleFactory().

+
33 {
34  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
35 }
+
+
+ +

◆ CreateTensorHandle() [2/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::unique_ptr< armnn::ITensorHandle > CreateTensorHandle (const armnn::TensorInfotensorInfo,
armnn::DataLayout dataLayout 
) const
+
+overridevirtual
+
+ +

Implements ITensorHandleFactory.

+ +

Definition at line 37 of file SampleDynamicTensorHandleFactory.cpp.

+ +

References armnn::IgnoreUnused().

+
40 {
41  IgnoreUnused(dataLayout);
42  return std::make_unique<SampleTensorHandle>(tensorInfo, m_MemoryManager);
43 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ CreateTensorHandle() [3/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::unique_ptr< armnn::ITensorHandle > CreateTensorHandle (const armnn::TensorInfotensorInfo,
const bool IsMemoryManaged 
) const
+
+overridevirtual
+
+ +

Utility Functions for backends which require TensorHandles to have unmanaged memory.

+

These should be overloaded if required to facilitate direct import of input tensors and direct export of output tensors.

+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 45 of file SampleDynamicTensorHandleFactory.cpp.

+
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 }
+
+
+ +

◆ CreateTensorHandle() [4/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
std::unique_ptr< armnn::ITensorHandle > CreateTensorHandle (const armnn::TensorInfotensorInfo,
armnn::DataLayout dataLayout,
const bool IsMemoryManaged 
) const
+
+overridevirtual
+
+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 59 of file SampleDynamicTensorHandleFactory.cpp.

+ +

References armnn::IgnoreUnused().

+
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 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ GetExportFlags()

+ +
+
+ + + + + +
+ + + + + + + +
armnn::MemorySourceFlags GetExportFlags () const
+
+overridevirtual
+
+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 85 of file SampleDynamicTensorHandleFactory.cpp.

+ +

Referenced by SampleDynamicTensorHandleFactory::SampleDynamicTensorHandleFactory().

+
86 {
87  return m_ExportFlags;
88 }
+
+
+ +

◆ GetId()

+ +
+
+ + + + + +
+ + + + + + + +
const FactoryId & GetId () const
+
+overridevirtual
+
+
+ +

◆ GetIdStatic()

+ +
+
+ + + + + +
+ + + + + + + +
const FactoryId & GetIdStatic ()
+
+static
+
+
+ +

◆ GetImportFlags()

+ +
+
+ + + + + +
+ + + + + + + +
armnn::MemorySourceFlags GetImportFlags () const
+
+overridevirtual
+
+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 90 of file SampleDynamicTensorHandleFactory.cpp.

+ +

Referenced by SampleDynamicTensorHandleFactory::SampleDynamicTensorHandleFactory().

+
91 {
92  return m_ImportFlags;
93 }
+
+
+ +

◆ SupportsSubTensors()

+ +
+
+ + + + + +
+ + + + + + + +
bool SupportsSubTensors () const
+
+overridevirtual
+
+ +

Implements ITensorHandleFactory.

+ +

Definition at line 80 of file SampleDynamicTensorHandleFactory.cpp.

+ +

Referenced by SampleDynamicTensorHandleFactory::SampleDynamicTensorHandleFactory().

+
81 {
82  return false;
83 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1