ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::backend::basic::MemoryPlannerFactory Class Reference

#include <MemoryPlannerFactory.h>

Public Member Functions

IMemoryPlanner< ir::OperandIndex > * create (const std::string &key)
 

Static Public Member Functions

static MemoryPlannerFactoryget ()
 

Detailed Description

Definition at line 28 of file MemoryPlannerFactory.h.

Member Function Documentation

◆ create()

IMemoryPlanner< ir::OperandIndex > * onert::backend::basic::MemoryPlannerFactory::create ( const std::string &  key)

Definition at line 30 of file MemoryPlannerFactory.cc.

31{
32 if (key == "FirstFit")
33 {
34 return new FirstFitPlanner;
35 }
36 else if (key == "Bump")
37 {
38 return new BumpPlanner;
39 }
40 else if (key == "WIC")
41 {
42 return new WICPlanner;
43 }
44 return new FirstFitPlanner; // Default Planner
45}

◆ get()

MemoryPlannerFactory & onert::backend::basic::MemoryPlannerFactory::get ( )
static

Definition at line 24 of file MemoryPlannerFactory.cc.

25{
26 static MemoryPlannerFactory instance;
27 return instance;
28}

The documentation for this class was generated from the following files: