ARM Compute Library
17.04
|
Interface to allocate tensors. More...
#include <ITensorAllocator.h>
Public Member Functions | |
ITensorAllocator () | |
Default constructor. More... | |
ITensorAllocator (const ITensorAllocator &)=default | |
Allow instances of this class to be copy constructed. More... | |
ITensorAllocator & | operator= (const ITensorAllocator &)=default |
Allow instances of this class to be copied. More... | |
ITensorAllocator (ITensorAllocator &&)=default | |
Allow instances of this class to be move constructed. More... | |
ITensorAllocator & | operator= (ITensorAllocator &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~ITensorAllocator ()=default |
Default virtual destructor. More... | |
void | init (const TensorInfo &input) |
Initialize a tensor based on the passed TensorInfo. More... | |
TensorInfo & | info () |
Return a reference to the tensor's metadata. More... | |
const TensorInfo & | info () const |
Return a constant reference to the tensor's metadata. More... | |
virtual void | allocate ()=0 |
Interface to be implemented by the child class to allocate the tensor. More... | |
Interface to allocate tensors.
Definition at line 35 of file ITensorAllocator.h.
ITensorAllocator | ( | ) |
Default constructor.
|
default |
Allow instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Interface to be implemented by the child class to allocate the tensor.
Implemented in CLTensorAllocator, and TensorAllocator.
Referenced by main_cl_convolution(), main_cl_events(), and main_neoncl_scale_median_gaussian().
TensorInfo& info | ( | ) |
Return a reference to the tensor's metadata.
const TensorInfo& info | ( | ) | const |
Return a constant reference to the tensor's metadata.
void init | ( | const TensorInfo & | input | ) |
Initialize a tensor based on the passed TensorInfo.
[in] | input | TensorInfo object containing the description of the tensor to initialize. |
Referenced by main_cl_convolution(), main_cl_events(), and main_neoncl_scale_median_gaussian().
|
default |
Allow instances of this class to be copied.
|
default |
Allow instances of this class to be moved.