ONE - On-device Neural Engine
|
#include <StaticTensorManager.h>
Public Member Functions | |
StaticTensorManager (const std::shared_ptr< TensorRegistry > ®, DynamicTensorManager *dynamic_tensor_manager, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operand_indexes) | |
StaticTensorManager (const std::shared_ptr< TensorRegistry > ®, const std::string planner_id, DynamicTensorManager *dynamic_tensor_manager, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operand_indexes) | |
virtual | ~StaticTensorManager ()=default |
void | allocateNonconsts (void) |
void | deallocateNonconsts (void) |
void | buildTensor (const ir::OperandIndex &ind, const ir::OperandInfo &tensor_info, bool as_const) |
void | claimPlan (const ir::OperandIndex &ind, uint32_t size) |
void | releasePlan (const ir::OperandIndex &ind) |
void | iterate (const std::function< void(const ir::OperandIndex &)> &fn) |
Definition at line 36 of file StaticTensorManager.h.
onert::backend::basic::StaticTensorManager::StaticTensorManager | ( | const std::shared_ptr< TensorRegistry > & | reg, |
DynamicTensorManager * | dynamic_tensor_manager, | ||
const ir::OperandIndexMap< ir::OperandIndex > & | shared_memory_operand_indexes | ||
) |
Definition at line 32 of file StaticTensorManager.cc.
onert::backend::basic::StaticTensorManager::StaticTensorManager | ( | const std::shared_ptr< TensorRegistry > & | reg, |
const std::string | planner_id, | ||
DynamicTensorManager * | dynamic_tensor_manager, | ||
const ir::OperandIndexMap< ir::OperandIndex > & | shared_memory_operand_indexes | ||
) |
Definition at line 42 of file StaticTensorManager.cc.
|
virtualdefault |
void onert::backend::basic::StaticTensorManager::allocateNonconsts | ( | void | ) |
Definition at line 53 of file StaticTensorManager.cc.
References VERBOSE.
void onert::backend::basic::StaticTensorManager::buildTensor | ( | const ir::OperandIndex & | ind, |
const ir::OperandInfo & | tensor_info, | ||
bool | as_const | ||
) |
Definition at line 73 of file StaticTensorManager.cc.
References onert::backend::basic::DynamicTensorManager::dynamic_mem_mgr().
void onert::backend::basic::StaticTensorManager::claimPlan | ( | const ir::OperandIndex & | ind, |
uint32_t | size | ||
) |
Definition at line 91 of file StaticTensorManager.cc.
References size.
void onert::backend::basic::StaticTensorManager::deallocateNonconsts | ( | void | ) |
Definition at line 71 of file StaticTensorManager.cc.
void onert::backend::basic::StaticTensorManager::iterate | ( | const std::function< void(const ir::OperandIndex &)> & | fn | ) |
Definition at line 140 of file StaticTensorManager.cc.
void onert::backend::basic::StaticTensorManager::releasePlan | ( | const ir::OperandIndex & | ind | ) |
Definition at line 114 of file StaticTensorManager.cc.