ArmNN
 26.01
Loading...
Searching...
No Matches
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_tbuffer () const
 
arm_compute::CLQuantization quantization () const
 
const cl::Buffer & cl_buffer () const
 

Protected Member Functions

uint8_tdo_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) {}
void set(arm_compute::ICLTensor *iclTensor)

◆ ICLTensorProxy() [2/3]

◆ ICLTensorProxy() [3/3]

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 }

References ICLTensorProxy::set().

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

References ICLTensorProxy::set().

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

References ICLTensorProxy::set().

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

References ICLTensorProxy::set().

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

References ICLTensorProxy::set().

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

References ICLTensorProxy::set().

◆ operator=() [1/2]

◆ operator=() [2/2]

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

References ICLTensorProxy::set().

◆ set()

void set ( arm_compute::ICLTensor * iclTensor)
inline

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