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 29 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 32 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 87 of file AclTensorManager.h.
|
virtualdefault |
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::allocateConsts | ( | void | ) |
Definition at line 96 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 120 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::allocateNonconsts | ( | void | ) |
Definition at line 102 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 201 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 150 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 132 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 224 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateConsts | ( | void | ) |
Definition at line 108 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateInternalBufferManager | ( | void | ) |
Definition at line 126 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::deallocateNonconsts | ( | void | ) |
Definition at line 114 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 164 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::finishLifetime | ( | const ir::OperandIndex & | ind | ) |
Definition at line 193 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 245 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 251 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 238 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 231 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::startLifetime | ( | const ir::OperandIndex & | ind | ) |
Definition at line 186 of file AclTensorManager.h.
void onert::backend::acl_common::AclTensorManager< T_ITensor, T_Tensor, T_SubTensor >::tryDeallocConstants | ( | void | ) |
Definition at line 265 of file AclTensorManager.h.
References VERBOSE.