|
ONE - On-device Neural Engine
|
#include <CompilerOptions.h>

Public Member Functions | |
| void | forceInternalOptions () |
| Force default values of CompilerOptions for correct compilations. | |
| void | verboseOptions () |
| Print option value. | |
Static Public Member Functions | |
| static std::unique_ptr< CompilerOptions > | fromGlobalConfig () |
| Set default values for CompilerOptions. | |
Data Fields | |
| std::vector< std::string > | backend_list |
| std::unordered_map< ir::IODesc, ir::Layout > | input_layout |
| std::unordered_map< ir::IODesc, ir::Layout > | output_layout |
| std::unordered_map< ir::IODesc, ir::TypeInfo > | input_type |
| std::unordered_map< ir::IODesc, ir::TypeInfo > | output_type |
| int | graph_dump_level |
| std::string | executor |
| ManualSchedulerOptions | manual_scheduler_options |
| bool | he_scheduler |
| bool | he_profiling_mode |
| bool | internal_output_alloc |
| bool | fp16_enable |
| std::string | workspace_dir |
Definition at line 41 of file CompilerOptions.h.
| void onert::compiler::CompilerOptions::forceInternalOptions | ( | ) |
Force default values of CompilerOptions for correct compilations.
Definition at line 108 of file CompilerOptions.cc.
References onert::backend::builtin::Config::ID, manual_scheduler_options, and onert::compiler::ManualSchedulerOptions::opcode_to_backend.
Referenced by onert::compiler::Compiler::compile(), and onert::compiler::train::TrainingCompiler::compile().
|
static |
Set default values for CompilerOptions.
Definition at line 75 of file CompilerOptions.cc.
References onert::util::getConfigBool(), onert::util::getConfigInt(), onert::util::getConfigString(), and nnfw::misc::split().
| void onert::compiler::CompilerOptions::verboseOptions | ( | ) |
Print option value.
Definition at line 121 of file CompilerOptions.cc.
References backend_list, executor, fp16_enable, graph_dump_level, he_profiling_mode, he_scheduler, internal_output_alloc, nnfw::misc::join(), manual_scheduler_options, onert::compiler::ManualSchedulerOptions::opcode_to_backend, and VERBOSE.
Referenced by onert::compiler::Compiler::compile(), and onert::compiler::train::TrainingCompiler::compile().
| std::vector<std::string> onert::compiler::CompilerOptions::backend_list |
Definition at line 66 of file CompilerOptions.h.
Referenced by onert::compiler::ManualScheduler::schedule(), and verboseOptions().
| std::string onert::compiler::CompilerOptions::executor |
Definition at line 74 of file CompilerOptions.h.
Referenced by onert::compiler::Compiler::compile(), onert::compiler::train::TrainingCompiler::compile(), and verboseOptions().
| bool onert::compiler::CompilerOptions::fp16_enable |
Definition at line 80 of file CompilerOptions.h.
Referenced by verboseOptions().
| int onert::compiler::CompilerOptions::graph_dump_level |
Definition at line 73 of file CompilerOptions.h.
Referenced by onert::compiler::Compiler::compile(), onert::compiler::train::TrainingCompiler::compile(), and verboseOptions().
| bool onert::compiler::CompilerOptions::he_profiling_mode |
Definition at line 77 of file CompilerOptions.h.
Referenced by onert::compiler::Compiler::compile(), onert::compiler::train::TrainingCompiler::compile(), and verboseOptions().
| bool onert::compiler::CompilerOptions::he_scheduler |
Definition at line 76 of file CompilerOptions.h.
Referenced by onert::compiler::Compiler::compile(), onert::compiler::train::TrainingCompiler::compile(), and verboseOptions().
| std::unordered_map<ir::IODesc, ir::Layout> onert::compiler::CompilerOptions::input_layout |
Definition at line 67 of file CompilerOptions.h.
Referenced by onert::compiler::pass::PermutationIOPass::run().
| std::unordered_map<ir::IODesc, ir::TypeInfo> onert::compiler::CompilerOptions::input_type |
Definition at line 69 of file CompilerOptions.h.
Referenced by onert::compiler::pass::PermutationIOPass::run().
| bool onert::compiler::CompilerOptions::internal_output_alloc |
Definition at line 78 of file CompilerOptions.h.
Referenced by onert::compiler::Compiler::compile(), and verboseOptions().
| ManualSchedulerOptions onert::compiler::CompilerOptions::manual_scheduler_options |
Definition at line 75 of file CompilerOptions.h.
Referenced by forceInternalOptions(), onert::compiler::ManualScheduler::schedule(), and verboseOptions().
| std::unordered_map<ir::IODesc, ir::Layout> onert::compiler::CompilerOptions::output_layout |
Definition at line 68 of file CompilerOptions.h.
Referenced by onert::compiler::pass::PermutationIOPass::run().
| std::unordered_map<ir::IODesc, ir::TypeInfo> onert::compiler::CompilerOptions::output_type |
Definition at line 70 of file CompilerOptions.h.
Referenced by onert::compiler::pass::PermutationIOPass::run().
| std::string onert::compiler::CompilerOptions::workspace_dir |
Definition at line 81 of file CompilerOptions.h.