20.11
|
#include <BaseMemoryManager.hpp>
Public Types | |
enum | MemoryAffinity { Buffer, Offset } |
Public Member Functions | |
BaseMemoryManager () | |
virtual | ~BaseMemoryManager () |
void | Acquire () override |
void | Release () override |
BaseMemoryManager (std::unique_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 () |
![]() | |
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 |
![]() | |
IMemoryManager () | |
Protected Attributes | |
std::unique_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 23 of file BaseMemoryManager.hpp.
|
strong |
Enumerator | |
---|---|
Buffer | |
Offset |
Definition at line 26 of file BaseMemoryManager.hpp.
|
inline |
Definition at line 32 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::~BaseMemoryManager().
|
inlinevirtual |
Definition at line 33 of file BaseMemoryManager.hpp.
References BaseMemoryManager::Acquire(), BaseMemoryManager::BaseMemoryManager(), and BaseMemoryManager::Release().
BaseMemoryManager | ( | std::unique_ptr< arm_compute::IAllocator > | alloc, |
MemoryAffinity | memoryAffinity | ||
) |
Definition at line 18 of file BaseMemoryManager.cpp.
References ARMNN_ASSERT, BaseMemoryManager::CreateArmComputeMemoryManager(), BaseMemoryManager::m_Allocator, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
|
overridevirtual |
Implements IMemoryManager.
Definition at line 48 of file BaseMemoryManager.cpp.
References ARMNN_ASSERT, BaseMemoryManager::m_Allocator, BaseMemoryManager::m_InterLayerMemoryGroup, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
Referenced by BaseMemoryManager::Release(), and BaseMemoryManager::~BaseMemoryManager().
|
protected |
Definition at line 29 of file BaseMemoryManager.cpp.
References BaseMemoryManager::Buffer.
Referenced by BaseMemoryManager::BaseMemoryManager().
|
protectedpure virtual |
Implemented in ClMemoryManager, and NeonMemoryManager.
Referenced by ClMemoryManager::ClMemoryManager(), and NeonMemoryManager::NeonMemoryManager().
|
inline |
Definition at line 42 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_InterLayerMemoryMgr.
|
inline |
Definition at line 43 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_InterLayerMemoryGroup.
|
inline |
Definition at line 41 of file BaseMemoryManager.hpp.
References BaseMemoryManager::m_IntraLayerMemoryMgr.
|
overridevirtual |
Implements IMemoryManager.
Definition at line 65 of file BaseMemoryManager.cpp.
References BaseMemoryManager::Acquire(), ARMNN_ASSERT, BaseMemoryManager::m_InterLayerMemoryGroup, BaseMemoryManager::m_InterLayerMemoryMgr, and BaseMemoryManager::m_IntraLayerMemoryMgr.
Referenced by BaseMemoryManager::~BaseMemoryManager().
|
protected |
Definition at line 46 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), and BaseMemoryManager::BaseMemoryManager().
|
protected |
Definition at line 49 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), ClMemoryManager::ClMemoryManager(), BaseMemoryManager::GetInterLayerMemoryGroup(), NeonMemoryManager::NeonMemoryManager(), and BaseMemoryManager::Release().
|
protected |
Definition at line 48 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), BaseMemoryManager::BaseMemoryManager(), ClMemoryManager::ClMemoryManager(), BaseMemoryManager::GetInterLayerManager(), NeonMemoryManager::NeonMemoryManager(), and BaseMemoryManager::Release().
|
protected |
Definition at line 47 of file BaseMemoryManager.hpp.
Referenced by BaseMemoryManager::Acquire(), BaseMemoryManager::BaseMemoryManager(), BaseMemoryManager::GetIntraLayerManager(), and BaseMemoryManager::Release().