24.08
|
#include <BaseMemoryManager.hpp>
Public Types | |
enum | MemoryAffinity { Buffer, Offset } |
Public Member Functions | |
BaseMemoryManager () | |
virtual | ~BaseMemoryManager () |
void | Acquire () override |
void | Release () override |
BaseMemoryManager (std::shared_ptr< arm_compute::IAllocator > alloc, MemoryAffinity memoryAffinity) | |
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & | GetIntraLayerManager () |
std::shared_ptr< arm_compute::MemoryManagerOnDemand > & | GetInterLayerManager () |
std::shared_ptr< arm_compute::IMemoryGroup > & | GetInterLayerMemoryGroup () |
Public Member Functions inherited from IMemoryManager | |
virtual | ~IMemoryManager () |
Protected Member Functions | |
std::shared_ptr< arm_compute::MemoryManagerOnDemand > | CreateArmComputeMemoryManager (MemoryAffinity memoryAffinity) |
virtual std::shared_ptr< arm_compute::IMemoryGroup > | CreateMemoryGroup (const std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)=0 |
Protected Member Functions inherited from IMemoryManager | |
IMemoryManager () | |
Protected Attributes | |
std::shared_ptr< arm_compute::IAllocator > | m_Allocator |
std::shared_ptr< arm_compute::MemoryManagerOnDemand > | m_IntraLayerMemoryMgr |
std::shared_ptr< arm_compute::MemoryManagerOnDemand > | m_InterLayerMemoryMgr |
std::shared_ptr< arm_compute::IMemoryGroup > | m_InterLayerMemoryGroup |
Definition at line 24 of file BaseMemoryManager.hpp.
|
strong |
Enumerator | |
---|---|
Buffer | |
Offset |
Definition at line 27 of file BaseMemoryManager.hpp.
|
inline |
Definition at line 33 of file BaseMemoryManager.hpp.
|
inlinevirtual |
Definition at line 34 of file BaseMemoryManager.hpp.
BaseMemoryManager | ( | std::shared_ptr< arm_compute::IAllocator > | alloc, |
MemoryAffinity | memoryAffinity | ||
) |
Definition at line 18 of file BaseMemoryManager.cpp.
References ARMNN_THROW_INVALIDARG_MSG_IF_FALSE, BaseMemoryManager::CreateArmComputeMemoryManager(), BaseMemoryManager::m_Allocator, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
|
overridevirtual |
Implements IMemoryManager.
Definition at line 48 of file BaseMemoryManager.cpp.
References BaseMemoryManager::m_Allocator, BaseMemoryManager::m_InterLayerMemoryGroup, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
|
protected |
Definition at line 29 of file BaseMemoryManager.cpp.
References BaseMemoryManager::Buffer.
Referenced by BaseMemoryManager::BaseMemoryManager().
|
protectedpure virtual |
Implemented in ClMemoryManager, and NeonMemoryManager.
|
inline |
Definition at line 43 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_InterLayerMemoryMgr.
|
inline |
Definition at line 44 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_InterLayerMemoryGroup.
|
inline |
Definition at line 42 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_IntraLayerMemoryMgr.
|
overridevirtual |
Implements IMemoryManager.
Definition at line 62 of file BaseMemoryManager.cpp.
References BaseMemoryManager::m_InterLayerMemoryGroup, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
|
protected |
Definition at line 47 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), and BaseMemoryManager::BaseMemoryManager().
|
protected |
Definition at line 50 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), ClMemoryManager::ClMemoryManager(), BaseMemoryManager::GetInterLayerMemoryGroup(), NeonMemoryManager::NeonMemoryManager(), and BaseMemoryManager::Release().
|
protected |
Definition at line 49 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), BaseMemoryManager::BaseMemoryManager(), ClMemoryManager::ClMemoryManager(), BaseMemoryManager::GetInterLayerManager(), NeonMemoryManager::NeonMemoryManager(), and BaseMemoryManager::Release().
|
protected |
Definition at line 48 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), BaseMemoryManager::BaseMemoryManager(), BaseMemoryManager::GetIntraLayerManager(), and BaseMemoryManager::Release().