ONE - On-device Neural Engine
Loading...
Searching...
No Matches
circlechef::CircleOpRegistry Class Reference

circlechef operator registry More...

#include <CircleOpRegistry.h>

Public Member Functions

const CircleOpCheflookup (circle::BuiltinOperator op) const
 Returns registered CircleOpChef pointer for BuiltinOperator or nullptr if not registered.
 

Static Public Member Functions

static CircleOpRegistryget ()
 

Detailed Description

circlechef operator registry

Definition at line 31 of file CircleOpRegistry.h.

Member Function Documentation

◆ get()

static CircleOpRegistry & circlechef::CircleOpRegistry::get ( )
inlinestatic

Definition at line 46 of file CircleOpRegistry.h.

47 {
48 static CircleOpRegistry me;
49 return me;
50 }

Referenced by circlechef::generate_recipe().

◆ lookup()

const CircleOpChef * circlechef::CircleOpRegistry::lookup ( circle::BuiltinOperator  op) const
inline

Returns registered CircleOpChef pointer for BuiltinOperator or nullptr if not registered.

Definition at line 38 of file CircleOpRegistry.h.

39 {
40 if (_circleop_map.find(op) == _circleop_map.end())
41 return nullptr;
42
43 return _circleop_map.at(op).get();
44 }

Referenced by circlechef::generate_recipe().


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