ClTensorDecorator wraps an existing CL tensor allowing us to override the TensorInfo for it.
More...
#include <ClTensorHandle.hpp>
|
uint8_t * | do_map (cl::CommandQueue &q, bool blocking) override |
|
void | do_unmap (cl::CommandQueue &q) override |
|
ClTensorDecorator wraps an existing CL tensor allowing us to override the TensorInfo for it.
Definition at line 370 of file ClTensorHandle.hpp.
◆ ClTensorDecorator() [1/4]
◆ ClTensorDecorator() [2/4]
Definition at line 25 of file ClTensorHandle.cpp.
26 : m_Original(
nullptr), m_TensorInfo()
28 m_TensorInfo = armcomputetensorutils::BuildArmComputeTensorInfo(tensorInfo);
29 m_Original = original;
◆ ~ClTensorDecorator()
◆ ClTensorDecorator() [3/4]
◆ ClTensorDecorator() [4/4]
◆ cl_buffer()
const cl::Buffer & cl_buffer |
( |
| ) |
const |
|
override |
Definition at line 42 of file ClTensorHandle.cpp.
44 ARM_COMPUTE_ERROR_ON(m_Original ==
nullptr);
45 return m_Original->cl_buffer();
◆ do_map()
uint8_t * do_map |
( |
cl::CommandQueue & |
q, |
|
|
bool |
blocking |
|
) |
| |
|
overrideprotected |
Definition at line 68 of file ClTensorHandle.cpp.
70 if(m_Original->buffer() ==
nullptr)
72 m_Original->map(q, blocking);
74 return m_Original->buffer();
◆ do_unmap()
void do_unmap |
( |
cl::CommandQueue & |
q | ) |
|
|
overrideprotected |
◆ info() [1/2]
arm_compute::ITensorInfo * info |
( |
| ) |
const |
|
overridevirtual |
◆ info() [2/2]
virtual arm_compute::ITensorInfo* info |
( |
| ) |
|
|
overridevirtual |
◆ map()
void map |
( |
bool |
blocking = true | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ parent()
arm_compute::ICLTensor * parent |
( |
| ) |
|
◆ quantization()
arm_compute::CLQuantization quantization |
( |
| ) |
const |
|
override |
◆ unmap()
The documentation for this class was generated from the following files: