ONE - On-device Neural Engine
Loading...
Searching...
No Matches
circledump::MetadataPrinterRegistry Class Reference

#include <MetadataPrinter.h>

Public Member Functions

 MetadataPrinterRegistry ()
 
const MetadataPrinterlookup (std::string op) const
 

Static Public Member Functions

static MetadataPrinterRegistryget ()
 

Detailed Description

Definition at line 35 of file MetadataPrinter.h.

Constructor & Destructor Documentation

◆ MetadataPrinterRegistry()

circledump::MetadataPrinterRegistry::MetadataPrinterRegistry ( )

Definition at line 113 of file MetadataPrinter.cpp.

114{
115 _metadata_map["ONE_source_table"] = std::make_unique<SourceTablePrinter>();
116 _metadata_map["ONE_op_table"] = std::make_unique<OpTablePrinter>();
117}

Member Function Documentation

◆ get()

static MetadataPrinterRegistry & circledump::MetadataPrinterRegistry::get ( )
inlinestatic

Definition at line 50 of file MetadataPrinter.h.

51 {
53 return me;
54 }

Referenced by circledump::dump_model().

◆ lookup()

const MetadataPrinter * circledump::MetadataPrinterRegistry::lookup ( std::string  op) const
inline

Definition at line 41 of file MetadataPrinter.h.

42 {
43 if (_metadata_map.find(op) == _metadata_map.end())
44 return nullptr;
45
46 return _metadata_map.at(op).get();
47 }

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