ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::compiler::pass::PassRunner Class Reference

Composite passes with logging. More...

#include <PassRunner.h>

Public Member Functions

 PassRunner ()=default
 
PassRunnerappend (std::unique_ptr< IPass > pass)
 
void run ()
 

Detailed Description

Composite passes with logging.

Definition at line 37 of file PassRunner.h.

Constructor & Destructor Documentation

◆ PassRunner()

onert::compiler::pass::PassRunner::PassRunner ( )
default

Member Function Documentation

◆ append()

PassRunner & onert::compiler::pass::PassRunner::append ( std::unique_ptr< IPass pass)

Definition at line 26 of file PassRunner.cc.

27{
28 _passes.emplace_back(std::move(pass));
29 return *this;
30}

Referenced by onert::compiler::Compiler::compile(), onert::compiler::MultiModelCompiler::compile(), and onert::compiler::train::TrainingCompiler::compile().

◆ run()

void onert::compiler::pass::PassRunner::run ( )

Definition at line 32 of file PassRunner.cc.

33{
34 for (auto &&pass : _passes)
35 {
36 VERBOSE(PassRunner) << "Start running '" << pass->id() << "'" << std::endl;
37 pass->run();
38 VERBOSE(PassRunner) << "Finished running '" << pass->id() << "'" << std::endl;
39 // TODO Dump graph?
40 }
41}
#define VERBOSE(name, lv)
Definition Log.h:71

References VERBOSE.

Referenced by onert::compiler::Compiler::compile(), onert::compiler::MultiModelCompiler::compile(), onert::compiler::train::TrainingCompiler::compile(), and package.infer.session::inference().


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