ONE - On-device Neural Engine
|
CPPCodeGenerator implements interfaces that provides BaseCodeGenerator for C++ language This includes header file generation, code file generation and variable renaming according to C++ naming requirements. More...
#include <CPPGenerator.h>
Public Member Functions | |
CPPCodeGenerator (std::string output_dir, std::string artifact_name) | |
void | run (mir::Graph *graph) |
Method represents base generation sequence: analysis, serialization, header/code generation, etc. | |
CPPCodeGenerator implements interfaces that provides BaseCodeGenerator for C++ language This includes header file generation, code file generation and variable renaming according to C++ naming requirements.
Definition at line 47 of file CPPGenerator.h.
nnc::CPPCodeGenerator::CPPCodeGenerator | ( | std::string | output_dir, |
std::string | artifact_name | ||
) |
Definition at line 81 of file CPPGenerator.cpp.
void nnc::CPPCodeGenerator::run | ( | mir::Graph * | graph | ) |
Method represents base generation sequence: analysis, serialization, header/code generation, etc.
graph | MIR graph |
Definition at line 109 of file CPPGenerator.cpp.
References nnc::ModelAnalyzer::analyze(), nnc::ModelAnalyzer::getInferenceSequence(), and nnc::Serializer::serialize().
Referenced by package.infer.session::inference(), and TEST().