ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::basic::IMemoryPlanner< Index > Struct Template Referenceabstract

Interface to plan memory. More...

#include <IMemoryPlanner.h>

Public Types

using MemoryPlans = std::unordered_map< Index, Block >
 

Public Member Functions

virtual void claim (const Index &, size_t)=0
 Claim memory for tensor.
 
virtual void release (const Index &)=0
 Release memory for tensor.
 
virtual uint32_t capacity ()=0
 Get capacity for memory planning.
 
virtual MemoryPlansmemory_plans ()=0
 Get MemoryPlans.
 
virtual ~IMemoryPlanner ()=default
 

Detailed Description

template<typename Index>
struct onert::backend::basic::IMemoryPlanner< Index >

Interface to plan memory.

Definition at line 43 of file IMemoryPlanner.h.

Member Typedef Documentation

◆ MemoryPlans

template<typename Index >
using onert::backend::basic::IMemoryPlanner< Index >::MemoryPlans = std::unordered_map<Index, Block>

Definition at line 45 of file IMemoryPlanner.h.

Constructor & Destructor Documentation

◆ ~IMemoryPlanner()

template<typename Index >
virtual onert::backend::basic::IMemoryPlanner< Index >::~IMemoryPlanner ( )
virtualdefault

Member Function Documentation

◆ capacity()

◆ claim()

template<typename Index >
virtual void onert::backend::basic::IMemoryPlanner< Index >::claim ( const Index &  ,
size_t   
)
pure virtual

◆ memory_plans()

◆ release()

template<typename Index >
virtual void onert::backend::basic::IMemoryPlanner< Index >::release ( const Index &  )
pure virtual

The documentation for this struct was generated from the following file: