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 --- ...lassarmnn_1_1_managed_const_tensor_handle.xhtml | 399 +++++++++++++++++++++ 1 file changed, 399 insertions(+) create mode 100644 22.02/classarmnn_1_1_managed_const_tensor_handle.xhtml (limited to '22.02/classarmnn_1_1_managed_const_tensor_handle.xhtml') diff --git a/22.02/classarmnn_1_1_managed_const_tensor_handle.xhtml b/22.02/classarmnn_1_1_managed_const_tensor_handle.xhtml new file mode 100644 index 0000000000..e180ed7df8 --- /dev/null +++ b/22.02/classarmnn_1_1_managed_const_tensor_handle.xhtml @@ -0,0 +1,399 @@ + + + + + + + + + + + + + +ArmNN: ManagedConstTensorHandle Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ManagedConstTensorHandle Class Reference
+
+
+ +

#include <TensorHandle.hpp>

+ + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ManagedConstTensorHandle (std::shared_ptr< ConstTensorHandle > ptr)
 
const void * Map (bool blocking=true)
 RAII Managed resource Unmaps MemoryArea once out of scope. More...
 
 ManagedConstTensorHandle (const ConstTensorHandle &other)=delete
 
ManagedConstTensorHandleoperator= (const ManagedConstTensorHandle &other)=delete
 
ManagedConstTensorHandleoperator= (ManagedConstTensorHandle &&other) noexcept=delete
 
 ~ManagedConstTensorHandle ()
 
void Unmap ()
 
const TensorInfoGetTensorInfo () const
 
bool IsMapped () const
 
+

Detailed Description

+
+

Definition at line 187 of file TensorHandle.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ManagedConstTensorHandle() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ManagedConstTensorHandle (std::shared_ptr< ConstTensorHandleptr)
+
+inlineexplicit
+
+ +

Definition at line 191 of file TensorHandle.hpp.

+
192  : m_Mapped(false)
193  , m_TensorHandle(std::move(ptr)) {};
+
+
+ +

◆ ManagedConstTensorHandle() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ManagedConstTensorHandle (const ConstTensorHandleother)
+
+delete
+
+ +
+
+ +

◆ ~ManagedConstTensorHandle()

+ +
+
+ + + + + +
+ + + + + + + +
~ManagedConstTensorHandle ()
+
+inline
+
+ +

Definition at line 220 of file TensorHandle.hpp.

+
221  {
222  // Bias tensor handles need to be initialized empty before entering scope of if statement checking if enabled
223  if (m_TensorHandle)
224  {
225  Unmap();
226  }
227  }
+
+
+
+

Member Function Documentation

+ +

◆ GetTensorInfo()

+ + + +

◆ IsMapped()

+ +
+
+ + + + + +
+ + + + + + + +
bool IsMapped () const
+
+inline
+
+ +

Definition at line 244 of file TensorHandle.hpp.

+
245  {
246  return m_Mapped;
247  }
+
+
+ +

◆ Map()

+ +
+
+ + + + + +
+ + + + + + + + +
const void* Map (bool blocking = true)
+
+inline
+
+ +

RAII Managed resource Unmaps MemoryArea once out of scope.

+ +

Definition at line 196 of file TensorHandle.hpp.

+ +

Referenced by DetectionPostProcessLayer::Accept(), BatchNormalizationLayer::Accept(), ConstantLayer::Accept(), TransposeConvolution2dLayer::Accept(), DepthwiseConvolution2dLayer::Accept(), Convolution2dLayer::Accept(), LstmLayer::Accept(), QuantizedLstmLayer::Accept(), QLstmLayer::Accept(), DetectionPostProcessLayer::ExecuteStrategy(), ConstantLayer::ExecuteStrategy(), BatchNormalizationLayer::ExecuteStrategy(), DepthwiseConvolution2dLayer::ExecuteStrategy(), TransposeConvolution2dLayer::ExecuteStrategy(), Convolution2dLayer::ExecuteStrategy(), LstmLayer::ExecuteStrategy(), UnidirectionalSequenceLstmLayer::ExecuteStrategy(), QuantizedLstmLayer::ExecuteStrategy(), and QLstmLayer::ExecuteStrategy().

+
197  {
198  if (m_TensorHandle)
199  {
200  auto pRet = m_TensorHandle->Map(blocking);
201  m_Mapped = true;
202  return pRet;
203  }
204  else
205  {
206  throw armnn::Exception("Attempting to Map null TensorHandle");
207  }
208 
209  }
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
+
+
+ +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ManagedConstTensorHandle& operator= (const ManagedConstTensorHandleother)
+
+delete
+
+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ManagedConstTensorHandle& operator= (ManagedConstTensorHandle && other)
+
+deletenoexcept
+
+ +
+
+ +

◆ Unmap()

+ +
+
+ + + + + +
+ + + + + + + +
void Unmap ()
+
+inline
+
+ +

Definition at line 229 of file TensorHandle.hpp.

+
230  {
231  // Only unmap if mapped and TensorHandle exists.
232  if (m_Mapped && m_TensorHandle)
233  {
234  m_TensorHandle->Unmap();
235  m_Mapped = false;
236  }
237  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1