ONE - On-device Neural Engine
|
Class to compile NN package. More...
#include <Compiler.h>
Public Member Functions | |
Compiler (const std::shared_ptr< ir::Model > &model, CompilerOptions *copts) | |
Construct a new Compiler object for single model. | |
Compiler (const std::shared_ptr< ir::NNPkg > &nnpkg, CompilerOptions *copts) | |
Construct a new Compiler object for NN package. | |
~Compiler ()=default | |
Destroy the Compiler object. | |
std::shared_ptr< CompilerArtifact > | compile (void) |
Do compilation with the options. | |
Public Member Functions inherited from onert::compiler::ICompiler | |
virtual | ~ICompiler ()=default |
Virtual ICompiler destructor. | |
Class to compile NN package.
Definition at line 37 of file Compiler.h.
onert::compiler::Compiler::Compiler | ( | const std::shared_ptr< ir::Model > & | model, |
CompilerOptions * | copts | ||
) |
Construct a new Compiler object for single model.
[in] | model | model to compile |
[in] | copts | Compiler Options |
Definition at line 41 of file Compiler.cc.
onert::compiler::Compiler::Compiler | ( | const std::shared_ptr< ir::NNPkg > & | nnpkg, |
CompilerOptions * | copts | ||
) |
Construct a new Compiler object for NN package.
[in] | nnpkg | NN package to compile |
[in] | copts | Compiler option for package |
Definition at line 47 of file Compiler.cc.
|
default |
Destroy the Compiler object.
|
virtual |
Do compilation with the options.
Implements onert::compiler::ICompiler.
Definition at line 54 of file Compiler.cc.
References onert::ir::IOperation::accept(), onert::compiler::pass::PassRunner::append(), onert::compiler::ExecutorFactory::create(), onert::dumper::dot::DotDumper::dump(), onert::compiler::CompilerOptions::executor, onert::compiler::CompilerOptions::forceInternalOptions(), onert::compiler::ExecutorFactory::get(), onert::compiler::CompilerOptions::graph_dump_level, onert::compiler::CompilerOptions::he_profiling_mode, onert::compiler::CompilerOptions::he_scheduler, onert::compiler::pass::PassRunner::run(), onert::exec::IExecutor::setIndexedRanks(), nnfw::misc::str(), onert::util::Index< T, DummyTag >::value(), and onert::compiler::CompilerOptions::verboseOptions().