ONE - On-device Neural Engine
|
#include <RecordMinMax.h>
Public Types | |
enum | DataSetFormat { UNKNOWN , RANDOM , H5 , DIRECTORY , LIST_FILE } |
Public Member Functions | |
RecordMinMax (uint32_t num_threads, std::unique_ptr< MinMaxComputer > &&minmax_computer) | |
~RecordMinMax ()=default | |
void | initialize (const std::string &input_model_path) |
void | setDataSetFormat (DataSetFormat format) |
DataSetFormat | getDataSetFormat () const |
void | setInputDataPath (const std::string &input_data_path) |
void | profileData () |
void | profileDataInParallel (const std::string &input_data_path) |
void | saveModel (const std::string &output_model_path) |
Definition at line 37 of file RecordMinMax.h.
|
inlineexplicit |
Definition at line 49 of file RecordMinMax.h.
|
default |
|
inline |
Definition at line 66 of file RecordMinMax.h.
Referenced by profileData().
void record_minmax::RecordMinMax::initialize | ( | const std::string & | input_model_path | ) |
Definition at line 75 of file RecordMinMax.cpp.
References luci::ImporterEx::importVerifyModule().
Referenced by entry().
void record_minmax::RecordMinMax::profileData | ( | ) |
Definition at line 190 of file RecordMinMax.cpp.
References record_minmax::checkInputDimension(), getDataSetFormat(), luci::CircleInput::index(), loco::input_nodes(), luci_interpreter::Interpreter::interpret(), UNKNOWN, and luci_interpreter::Interpreter::writeInputTensor().
Referenced by entry().
void record_minmax::RecordMinMax::profileDataInParallel | ( | const std::string & | input_data_path | ) |
Definition at line 248 of file RecordMinMax.cpp.
References record_minmax::MinMaxMap::appendMinMaxVector(), record_minmax::MinMaxMap::getMap(), INFO, loco::input_nodes(), and LOGGER.
Referenced by entry().
void record_minmax::RecordMinMax::saveModel | ( | const std::string & | output_model_path | ) |
Definition at line 334 of file RecordMinMax.cpp.
References luci::CircleExporter::invoke().
Referenced by entry().
|
inline |
Definition at line 60 of file RecordMinMax.h.
References UNKNOWN.
Referenced by entry().
|
inline |
Definition at line 68 of file RecordMinMax.h.
Referenced by entry().