ONE - On-device Neural Engine
Loading...
Searching...
No Matches
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 32 of file MemoryPlannerFactory.h.

Member Function Documentation

◆ create()

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

Definition at line 34 of file MemoryPlannerFactory.cc.

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

◆ get()

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

Definition at line 28 of file MemoryPlannerFactory.cc.

29{
30 static MemoryPlannerFactory instance;
31 return instance;
32}

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