ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kbenchmark::OperationLoader Class Reference

#include <OperationLoader.h>

Public Member Functions

Operationoperator[] (const std::string &name)
 
bool is_valid (const std::string &name)
 

Static Public Member Functions

static OperationLoadergetInstance (void)
 

Detailed Description

Definition at line 30 of file OperationLoader.h.

Member Function Documentation

◆ getInstance()

static OperationLoader & kbenchmark::OperationLoader::getInstance ( void  )
inlinestatic

Definition at line 33 of file OperationLoader.h.

34 {
35 static OperationLoader instance;
36 return instance;
37 }

Referenced by main().

◆ is_valid()

bool kbenchmark::OperationLoader::is_valid ( const std::string &  name)
inline

Definition at line 40 of file OperationLoader.h.

40{ return _map.count(name); }

Referenced by main().

◆ operator[]()

Operation * kbenchmark::OperationLoader::operator[] ( const std::string &  name)
inline

Definition at line 39 of file OperationLoader.h.

39{ return _map[name]; }

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