ONE - On-device Neural Engine
|
#include <AclTensorManager.h>
Public Types | |
using | T_AclMemoryManager = AclMemoryManager< T_ITensor, T_Tensor, T_SubTensor > |
Public Member Functions | |
AclTensorManager (T_AclMemoryManager *const_mgr, T_AclMemoryManager *nonconst_mgr, IInternalBufferManager *inter_mgr) | |
virtual | ~AclTensorManager ()=default |
void | allocateConsts (void) |
void | allocateNonconsts (void) |
void | deallocateConsts (void) |
void | deallocateNonconsts (void) |
void | allocateInternalBufferManager (void) |
void | deallocateInternalBufferManager (void) |
void | buildTensor (const ir::OperandIndex &ind, const ::arm_compute::TensorInfo &info, size_t rank, bool as_const, size_t num_uses) |
void | buildSubtensor (const ir::OperandIndex &parent, const ir::OperandIndex &child, const ::arm_compute::TensorShape &shape, const ::arm_compute::Coordinates &coordinates, size_t rank, bool extent_parent) |
std::shared_ptr< T_ITensor > | findTensorAsParent (const ir::OperandIndex &ind) |
void | startLifetime (const ir::OperandIndex &ind) |
void | finishLifetime (const ir::OperandIndex &ind) |
std::shared_ptr< T_ITensor > | at (const ir::OperandIndex &ind) |
ir::OperandIndexMap< std::shared_ptr< T_Tensor > > & | constTensors (void) |
ir::OperandIndexMap< std::shared_ptr< T_Tensor > > & | nonconstTensors (void) |
ir::OperandIndexMap< std::shared_ptr< T_SubTensor > > & | nonconstSubtensors (void) |
std::shared_ptr<::arm_compute::IMemoryManager > | internal_buffer_manager (void) |
void | iterate (const std::function< void(const ir::OperandIndex &)> &fn) |
void | tryDeallocConstants (void) |
Definition at line 33 of file AclTensorManager.h.
using onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::T_AclMemoryManager = AclMemoryManager<T_ITensor, T_Tensor, T_SubTensor> |
Definition at line 36 of file AclTensorManager.h.
onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::AclTensorManager | ( | T_AclMemoryManager * | const_mgr, |
T_AclMemoryManager * | nonconst_mgr, | ||
IInternalBufferManager * | inter_mgr | ||
) |
Definition at line 97 of file AclTensorManager.h.
|
virtualdefault |
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::allocateConsts | ( | void | ) |
Definition at line 106 of file AclTensorManager.h.
References onert::backend::acl_common::IInternalBufferManager::allocate().
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::allocateInternalBufferManager | ( | void | ) |
Definition at line 130 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::allocateNonconsts | ( | void | ) |
Definition at line 112 of file AclTensorManager.h.
std::shared_ptr< T_ITensor > onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::at | ( | const ir::OperandIndex & | ind | ) |
Definition at line 211 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::buildSubtensor | ( | const ir::OperandIndex & | parent, |
const ir::OperandIndex & | child, | ||
const ::arm_compute::TensorShape & | shape, | ||
const ::arm_compute::Coordinates & | coordinates, | ||
size_t | rank, | ||
bool | extent_parent | ||
) |
Definition at line 160 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::buildTensor | ( | const ir::OperandIndex & | ind, |
const ::arm_compute::TensorInfo & | info, | ||
size_t | rank, | ||
bool | as_const, | ||
size_t | num_uses | ||
) |
Definition at line 142 of file AclTensorManager.h.
References info.
ir::OperandIndexMap< std::shared_ptr< T_Tensor > > & onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::constTensors | ( | void | ) |
Definition at line 234 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateConsts | ( | void | ) |
Definition at line 118 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateInternalBufferManager | ( | void | ) |
Definition at line 136 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateNonconsts | ( | void | ) |
Definition at line 124 of file AclTensorManager.h.
std::shared_ptr< T_ITensor > onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::findTensorAsParent | ( | const ir::OperandIndex & | ind | ) |
Definition at line 174 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::finishLifetime | ( | const ir::OperandIndex & | ind | ) |
Definition at line 203 of file AclTensorManager.h.
std::shared_ptr<::arm_compute::IMemoryManager > onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::internal_buffer_manager | ( | void | ) |
Definition at line 255 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::iterate | ( | const std::function< void(const ir::OperandIndex &)> & | fn | ) |
Definition at line 261 of file AclTensorManager.h.
ir::OperandIndexMap< std::shared_ptr< T_SubTensor > > & onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::nonconstSubtensors | ( | void | ) |
Definition at line 248 of file AclTensorManager.h.
ir::OperandIndexMap< std::shared_ptr< T_Tensor > > & onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::nonconstTensors | ( | void | ) |
Definition at line 241 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::startLifetime | ( | const ir::OperandIndex & | ind | ) |
Definition at line 196 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::tryDeallocConstants | ( | void | ) |
Definition at line 275 of file AclTensorManager.h.
References VERBOSE.