ONE - On-device Neural Engine
Loading...
Searching...
No Matches
tflchef::TFliteOpRegistry Class Reference

tflchef operator registry More...

#include <TFliteOpRegistry.h>

Public Member Functions

const TFliteOpCheflookup (tflite::BuiltinOperator op) const
 Returns registered TFliteOpChef pointer for BuiltinOperator or nullptr if not registered.
 

Static Public Member Functions

static TFliteOpRegistryget ()
 

Detailed Description

tflchef operator registry

Definition at line 31 of file TFliteOpRegistry.h.

Member Function Documentation

◆ get()

static TFliteOpRegistry & tflchef::TFliteOpRegistry::get ( )
inlinestatic

Definition at line 46 of file TFliteOpRegistry.h.

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

Referenced by tflchef::generate_recipe().

◆ lookup()

const TFliteOpChef * tflchef::TFliteOpRegistry::lookup ( tflite::BuiltinOperator  op) const
inline

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

Definition at line 38 of file TFliteOpRegistry.h.

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

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