ArmNN
 24.02
ICLTensorProxy Class Reference

#include <ICLTensorProxy.hpp>

Inheritance diagram for ICLTensorProxy:
[legend]
Collaboration diagram for ICLTensorProxy:
[legend]

Public Member Functions

 ICLTensorProxy (arm_compute::ICLTensor *iclTensor)
 
 ICLTensorProxy (const ICLTensorProxy &)=delete
 
ICLTensorProxyoperator= (const ICLTensorProxy &)=delete
 
 ICLTensorProxy (ICLTensorProxy &&)=default
 
ICLTensorProxyoperator= (ICLTensorProxy &&)=default
 
void set (arm_compute::ICLTensor *iclTensor)
 
arm_compute::ITensorInfo * info () const
 
arm_compute::ITensorInfo * info ()
 
uint8_t * buffer () const
 
arm_compute::CLQuantization quantization () const
 
const cl::Buffer & cl_buffer () const
 

Protected Member Functions

uint8_t * do_map (cl::CommandQueue &q, bool blocking)
 
void do_unmap (cl::CommandQueue &q)
 

Detailed Description

Definition at line 13 of file ICLTensorProxy.hpp.

Constructor & Destructor Documentation

◆ ICLTensorProxy() [1/3]

ICLTensorProxy ( arm_compute::ICLTensor *  iclTensor)
inline

Definition at line 16 of file ICLTensorProxy.hpp.

16 : m_DelegateTensor(iclTensor) {}

◆ ICLTensorProxy() [2/3]

ICLTensorProxy ( const ICLTensorProxy )
delete

◆ ICLTensorProxy() [3/3]

ICLTensorProxy ( ICLTensorProxy &&  )
default

Member Function Documentation

◆ buffer()

uint8_t* buffer ( ) const
inline

Definition at line 43 of file ICLTensorProxy.hpp.

44  {
45  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
46  return m_DelegateTensor->buffer();
47  }

◆ cl_buffer()

const cl::Buffer& cl_buffer ( ) const
inline

Definition at line 55 of file ICLTensorProxy.hpp.

56  {
57  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
58  return m_DelegateTensor->cl_buffer();
59  }

◆ do_map()

uint8_t* do_map ( cl::CommandQueue &  q,
bool  blocking 
)
inlineprotected

Definition at line 62 of file ICLTensorProxy.hpp.

63  {
64  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
65  m_DelegateTensor->map(q, blocking);
66  return m_DelegateTensor->buffer();
67  }

◆ do_unmap()

void do_unmap ( cl::CommandQueue &  q)
inlineprotected

Definition at line 68 of file ICLTensorProxy.hpp.

69  {
70  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
71  return m_DelegateTensor->unmap(q);
72  }

◆ info() [1/2]

arm_compute::ITensorInfo* info ( )
inline

Definition at line 37 of file ICLTensorProxy.hpp.

38  {
39  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
40  return m_DelegateTensor->info();
41  }

◆ info() [2/2]

arm_compute::ITensorInfo* info ( ) const
inline

Definition at line 31 of file ICLTensorProxy.hpp.

32  {
33  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
34  return m_DelegateTensor->info();
35  }

◆ operator=() [1/2]

ICLTensorProxy& operator= ( const ICLTensorProxy )
delete

◆ operator=() [2/2]

ICLTensorProxy& operator= ( ICLTensorProxy &&  )
default

◆ quantization()

arm_compute::CLQuantization quantization ( ) const
inline

Definition at line 49 of file ICLTensorProxy.hpp.

50  {
51  ARM_COMPUTE_ERROR_ON(m_DelegateTensor == nullptr);
52  return m_DelegateTensor->quantization();
53  }

◆ set()

void set ( arm_compute::ICLTensor *  iclTensor)
inline

Definition at line 22 of file ICLTensorProxy.hpp.

23  {
24  if(iclTensor != nullptr)
25  {
26  m_DelegateTensor = iclTensor;
27  }
28  }

The documentation for this class was generated from the following file: