24.02.1
|
Base class specifying the tensor interface. More...
#include <ITensorV2.h>
Public Member Functions | |
ITensorV2 (IContext *ctx) | |
Explict Operator Constructor. More... | |
virtual | ~ITensorV2 () |
Destructor. More... | |
bool | is_valid () const |
Checks if a queue is valid. More... | |
virtual void * | map ()=0 |
Map tensor to a host pointer. More... | |
virtual StatusCode | unmap ()=0 |
Unmap tensor. More... | |
virtual StatusCode | import (void *handle, ImportMemoryType type)=0 |
Import external memory handle. More... | |
virtual arm_compute::ITensor * | tensor () const =0 |
Get the legacy tensor object. More... | |
size_t | get_size () const |
Get the size of the tensor in byte. More... | |
AclTensorDescriptor | get_descriptor () const |
Get the descriptor of this tensor. More... | |
Additional Inherited Members | |
Data Fields inherited from AclTensor_ | |
arm_compute::detail::Header | header {arm_compute::detail::ObjectType::Tensor, nullptr} |
Base class specifying the tensor interface.
Definition at line 45 of file ITensorV2.h.
Explict Operator Constructor.
[in] | ctx | Context to be used by the operator |
Definition at line 52 of file ITensorV2.h.
References ARM_COMPUTE_ASSERT_NOT_NULLPTR, Header::ctx, AclTensor_::header, and IContext::inc_ref().
|
inlinevirtual |
Destructor.
Definition at line 59 of file ITensorV2.h.
References Header::ctx, IContext::dec_ref(), AclTensor_::header, arm_compute::detail::Invalid, and Header::type.
AclTensorDescriptor get_descriptor | ( | ) | const |
Get the descriptor of this tensor.
Definition at line 37 of file ITensorV2.cpp.
References arm_compute::detail::convert_to_descriptor(), arm_compute::test::validation::info, and ITensorV2::tensor().
size_t get_size | ( | ) | const |
Get the size of the tensor in byte.
Definition at line 32 of file ITensorV2.cpp.
References ITensor::info(), ITensorV2::tensor(), and ITensorInfo::total_size().
|
pure virtual |
|
inline |
Checks if a queue is valid.
Definition at line 68 of file ITensorV2.h.
References AclTensor_::header, arm_compute::detail::Tensor, and Header::type.
|
pure virtual |
|
pure virtual |
Get the legacy tensor object.
Implemented in ClTensor, and CpuTensor.
Referenced by ITensorV2::get_descriptor(), and ITensorV2::get_size().
|
pure virtual |