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 --- 20.02/classarmnn_1_1_cpu_tensor_handle.xhtml | 343 +++++++++++++++++++++++++++ 1 file changed, 343 insertions(+) create mode 100644 20.02/classarmnn_1_1_cpu_tensor_handle.xhtml (limited to '20.02/classarmnn_1_1_cpu_tensor_handle.xhtml') diff --git a/20.02/classarmnn_1_1_cpu_tensor_handle.xhtml b/20.02/classarmnn_1_1_cpu_tensor_handle.xhtml new file mode 100644 index 0000000000..afdee105f9 --- /dev/null +++ b/20.02/classarmnn_1_1_cpu_tensor_handle.xhtml @@ -0,0 +1,343 @@ + + + + + + + + + + + + + +ArmNN: CpuTensorHandle Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
CpuTensorHandle Class Reference
+
+
+ +

#include <CpuTensorHandle.hpp>

+
+Inheritance diagram for CpuTensorHandle:
+
+
+ + +ConstCpuTensorHandle +ITensorHandle +PassthroughCpuTensorHandle +ScopedCpuTensorHandle + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

template<typename T >
T * GetTensor () const
 
template<>
void * GetTensor () const
 
template<>
void * GetTensor () const
 
- Public Member Functions inherited from ConstCpuTensorHandle
template<typename T >
const T * GetConstTensor () const
 
const TensorInfoGetTensorInfo () const
 
virtual void Manage () override
 Indicate to the memory manager that this resource is active. More...
 
virtual ITensorHandleGetParent () const override
 Get the parent tensor if this is a subtensor. More...
 
virtual const void * Map (bool) const override
 Map the tensor data for access. More...
 
virtual void Unmap () const override
 Unmap the tensor data. More...
 
TensorShape GetStrides () const override
 Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor. More...
 
TensorShape GetShape () const override
 Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. More...
 
template<>
const void * GetConstTensor () const
 
template<>
const void * GetConstTensor () const
 
- Public Member Functions inherited from ITensorHandle
virtual ~ITensorHandle ()
 
virtual void Allocate ()=0
 Indicate to the memory manager that this resource is no longer active. More...
 
void * Map (bool blocking=true)
 Map the tensor data for access. More...
 
void Unmap ()
 Unmap the tensor data that was previously mapped with call to Map(). More...
 
virtual unsigned int GetImportFlags () const
 Get flags describing supported import sources. More...
 
virtual bool Import (void *memory, MemorySource source)
 Import externally allocated memory. More...
 
+ + + + + + + + + + +

+Protected Member Functions

 CpuTensorHandle (const TensorInfo &tensorInfo)
 
void SetMemory (void *mem)
 
- Protected Member Functions inherited from ConstCpuTensorHandle
 ConstCpuTensorHandle (const TensorInfo &tensorInfo)
 
void SetConstMemory (const void *mem)
 
+

Detailed Description

+
+

Definition at line 76 of file CpuTensorHandle.hpp.

+

Constructor & Destructor Documentation

+ +

◆ CpuTensorHandle()

+ +
+
+ + + + + +
+ + + + + + + + +
CpuTensorHandle (const TensorInfotensorInfo)
+
+protected
+
+ +

Definition at line 43 of file CpuTensorHandle.cpp.

+
44 : ConstCpuTensorHandle(tensorInfo)
45 , m_MutableMemory(nullptr)
46 {
47 }
ConstCpuTensorHandle(const TensorInfo &tensorInfo)
+
+
+
+

Member Function Documentation

+ +

◆ GetTensor() [1/3]

+ +
+
+ + + + + + + +
void * GetTensor () const
+
+ +

Definition at line 50 of file CpuTensorHandle.cpp.

+
51 {
52  return m_MutableMemory;
53 }
+
+
+ +

◆ GetTensor() [2/3]

+ +
+
+ + + + + +
+ + + + + + + +
T* GetTensor () const
+
+inline
+
+ +

Definition at line 80 of file CpuTensorHandle.hpp.

+ +

References ConstCpuTensorHandle::GetTensorInfo().

+ +

Referenced by ScopedCpuTensorHandle::Allocate(), and ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle().

+
81  {
82  BOOST_ASSERT(CompatibleTypes<T>(GetTensorInfo().GetDataType()));
83  return reinterpret_cast<T*>(m_MutableMemory);
84  }
const TensorInfo & GetTensorInfo() const
+
+
+
+ +

◆ GetTensor() [3/3]

+ +
+
+ + + + + + + +
void* GetTensor () const
+
+ +
+
+ +

◆ SetMemory()

+ +
+
+ + + + + +
+ + + + + + + + +
void SetMemory (void * mem)
+
+inlineprotected
+
+ +

Definition at line 89 of file CpuTensorHandle.hpp.

+ +

References ConstCpuTensorHandle::SetConstMemory().

+ +

Referenced by ScopedCpuTensorHandle::Allocate(), and ScopedCpuTensorHandle::operator=().

+
90  {
91  m_MutableMemory = mem;
92  SetConstMemory(m_MutableMemory);
93  }
void SetConstMemory(const void *mem)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1