ONE - On-device Neural Engine
Loading...
Searching...
No Matches
cirops::DumpOperators Class Reference

#include <Dump.h>

Public Member Functions

 DumpOperators ()=default
 
void run (std::ostream &os, const circle::Model *model, const DumpOption &option)
 

Detailed Description

Definition at line 34 of file Dump.h.

Constructor & Destructor Documentation

◆ DumpOperators()

cirops::DumpOperators::DumpOperators ( )
default

Member Function Documentation

◆ run()

void cirops::DumpOperators::run ( std::ostream &  os,
const circle::Model *  model,
const DumpOption option 
)

Definition at line 70 of file Dump.cpp.

71{
72 mio::circle::Reader reader(model);
73
74 const uint32_t subgraph_size = reader.num_subgraph();
75 for (uint32_t g = 0; g < subgraph_size; g++)
76 {
77 reader.select_subgraph(g);
78 dump_ops(os, reader, option);
79
80 if (!option.all_graphs)
81 break;
82 }
83}
Loads Circle file and provides helpers to access attributes.
Definition Reader.h:39

References cirops::DumpOption::all_graphs, mio::circle::Reader::num_subgraph(), and mio::circle::Reader::select_subgraph().

Referenced by entry(), and package.infer.session::inference().


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