ONE - On-device Neural Engine
|
PModelsRunner runs partitioned models from input data file and stores output data to a file. More...
#include <PModelsRunner.h>
Public Member Functions | |
PModelsRunner ()=default | |
bool | load_config (const std::string &filename) |
void | load_inputs (const std::string &input_prefix, int32_t num_inputs) |
bool | run (void) |
void | save_outputs (const std::string &output_file) |
PModelsRunner runs partitioned models from input data file and stores output data to a file.
Definition at line 41 of file PModelsRunner.h.
|
default |
bool prunner::PModelsRunner::load_config | ( | const std::string & | filename | ) |
Definition at line 92 of file PModelsRunner.cpp.
References crew::PConfig::parts, and crew::read_ini().
Referenced by entry().
void prunner::PModelsRunner::load_inputs | ( | const std::string & | input_prefix, |
int32_t | num_inputs | ||
) |
Definition at line 107 of file PModelsRunner.cpp.
References INFO, crew::Part::inputs, LOGGER, and crew::PConfig::source.
Referenced by entry().
bool prunner::PModelsRunner::run | ( | void | ) |
Definition at line 147 of file PModelsRunner.cpp.
References INFO, loco::input_nodes(), LOGGER, luci::CircleNode::name(), and loco::output_nodes().
Referenced by entry(), and package.infer.session::inference().
void prunner::PModelsRunner::save_outputs | ( | const std::string & | output_file | ) |
Definition at line 222 of file PModelsRunner.cpp.
References INFO, LOGGER, crew::Part::model_file, luci::CircleNode::name(), loco::output_nodes(), and crew::PConfig::source.
Referenced by entry().