From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- .../classarmnn_1_1_ref_tensor_handle_factory.xhtml | 502 +++++++++++++++++++++ 1 file changed, 502 insertions(+) create mode 100644 20.02/classarmnn_1_1_ref_tensor_handle_factory.xhtml (limited to '20.02/classarmnn_1_1_ref_tensor_handle_factory.xhtml') diff --git a/20.02/classarmnn_1_1_ref_tensor_handle_factory.xhtml b/20.02/classarmnn_1_1_ref_tensor_handle_factory.xhtml new file mode 100644 index 0000000000..89b19c3b9f --- /dev/null +++ b/20.02/classarmnn_1_1_ref_tensor_handle_factory.xhtml @@ -0,0 +1,502 @@ + + + + + + + + + + + + + +ArmNN: RefTensorHandleFactory Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefTensorHandleFactory Class Reference
+
+
+ +

#include <RefTensorHandleFactory.hpp>

+
+Inheritance diagram for RefTensorHandleFactory:
+
+
+ + +ITensorHandleFactory + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

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

+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 RefTensorHandleFactory.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefTensorHandleFactory()

+ +
+
+ + + + + +
+ + + + + + + + +
RefTensorHandleFactory (std::shared_ptr< RefMemoryManagermgr)
+
+inline
+
+
+

Member Function Documentation

+ +

◆ CreateSubTensorHandle()

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

Implements ITensorHandleFactory.

+ +

Definition at line 22 of file RefTensorHandleFactory.cpp.

+ +

References armnn::IgnoreUnused().

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

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

◆ CreateTensorHandle() [1/2]

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

Implements ITensorHandleFactory.

+ +

Definition at line 30 of file RefTensorHandleFactory.cpp.

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

+
31 {
32  return std::make_unique<RefTensorHandle>(tensorInfo, m_MemoryManager, m_ImportFlags);
33 }
+
+
+ +

◆ CreateTensorHandle() [2/2]

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

Implements ITensorHandleFactory.

+ +

Definition at line 35 of file RefTensorHandleFactory.cpp.

+ +

References armnn::IgnoreUnused().

+
37 {
38  IgnoreUnused(dataLayout);
39  return std::make_unique<RefTensorHandle>(tensorInfo, m_MemoryManager, m_ImportFlags);
40 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ GetExportFlags()

+ +
+
+ + + + + +
+ + + + + + + +
MemorySourceFlags GetExportFlags () const
+
+overridevirtual
+
+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 52 of file RefTensorHandleFactory.cpp.

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

+
53 {
54  return m_ExportFlags;
55 }
+
+
+ +

◆ GetId()

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

Implements ITensorHandleFactory.

+ +

Definition at line 42 of file RefTensorHandleFactory.cpp.

+ +

References RefTensorHandleFactory::GetIdStatic().

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

+
43 {
44  return GetIdStatic();
45 }
static const FactoryId & GetIdStatic()
+
+
+
+ +

◆ GetIdStatic()

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

Definition at line 16 of file RefTensorHandleFactory.cpp.

+ +

References armnn::RefTensorHandleFactoryId().

+ +

Referenced by RefBackend::GetHandleFactoryPreferences(), RefTensorHandleFactory::GetId(), and RefTensorHandleFactory::RefTensorHandleFactory().

+
17 {
18  static const FactoryId s_Id(RefTensorHandleFactoryId());
19  return s_Id;
20 }
+
constexpr const char * RefTensorHandleFactoryId()
+
+
+
+ +

◆ GetImportFlags()

+ +
+
+ + + + + +
+ + + + + + + +
MemorySourceFlags GetImportFlags () const
+
+overridevirtual
+
+ +

Reimplemented from ITensorHandleFactory.

+ +

Definition at line 57 of file RefTensorHandleFactory.cpp.

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

+
58 {
59  return m_ImportFlags;
60 }
+
+
+ +

◆ SupportsSubTensors()

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

Implements ITensorHandleFactory.

+ +

Definition at line 47 of file RefTensorHandleFactory.cpp.

+ +

Referenced by RefTensorHandleFactory::RefTensorHandleFactory().

+
48 {
49  return false;
50 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1