ONE - On-device Neural Engine
|
#include <OMTrainingInterpreter.h>
Public Member Functions | |
OMTrainingInterpreter ()=default | |
OMTrainingInterpreter (const OMTrainingInterpreter &)=delete | |
OMTrainingInterpreter (OMTrainingInterpreter &&)=delete | |
OMTrainingInterpreter & | operator= (const OMTrainingInterpreter &)=delete |
OMTrainingInterpreter && | operator= (const OMTrainingInterpreter &&)=delete |
~OMTrainingInterpreter ()=default | |
OMStatus | importTrainModel (char *model_ptr, const OMConfig &config) |
void | setInput (uint8_t *data, uint32_t input_index) |
void | setTarget (uint8_t *data, uint32_t target_index) |
OMStatus | trainSingleStep (OMConfig &config) |
OMStatus | reset () |
OMStatus | evaluateMetric (const OMConfig &config, OMMetrics metric, void *metric_val, uint32_t test_size) |
uint32_t | getInputSizeAt (uint32_t position) |
uint32_t | getOutputSizeAt (uint32_t position) |
OMStatus | saveModel (const OMConfig &config, const char *save_path) |
OMStatus | saveCheckpoint (const OMConfig &config, const char *save_path) |
OMStatus | loadCheckpoint (OMConfig &config, const char *load_path) |
OMStatus | run (const OMConfig &config) |
OMStatus | allocateInputs () |
void * | getInputData (uint32_t position) |
void * | getInputDataAt (uint32_t position) |
void * | getOutputDataAt (uint32_t position) |
Definition at line 28 of file OMTrainingInterpreter.h.
|
default |
|
delete |
|
delete |
|
default |
|
inline |
Definition at line 91 of file OMTrainingInterpreter.h.
References onert_micro::core::OMRuntimeModule::allocateInputs().
Referenced by nnfw_session::train_run().
|
inline |
Definition at line 71 of file OMTrainingInterpreter.h.
References onert_micro::core::OMTrainingRuntimeModule::evaluateMetric().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_get_loss().
void * OMTrainingInterpreter::getInputData | ( | uint32_t | position | ) |
Definition at line 166 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::getInputData().
Referenced by nnfw_session::train_run().
void * OMTrainingInterpreter::getInputDataAt | ( | uint32_t | position | ) |
Definition at line 156 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMRuntimeModule::getInputDataAt().
Referenced by nnfw_session::train_run().
uint32_t OMTrainingInterpreter::getInputSizeAt | ( | uint32_t | position | ) |
Definition at line 41 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMRuntimeModule::getInputSizeAt().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_run().
void * OMTrainingInterpreter::getOutputDataAt | ( | uint32_t | position | ) |
Definition at line 161 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMRuntimeModule::getOutputDataAt().
Referenced by nnfw_session::train_run().
uint32_t OMTrainingInterpreter::getOutputSizeAt | ( | uint32_t | position | ) |
Definition at line 46 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMRuntimeModule::getOutputSizeAt().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_run().
Definition at line 25 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::importTrainModel(), and onert_micro::UnknownError.
Referenced by entry(), nnfw_session::load_model_from_file(), and training_configure_tool::runTrainProcessWithCurConfig().
Definition at line 77 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::loadCheckpointData(), and onert_micro::UnknownError.
Referenced by entry(), and nnfw_session::train_import_checkpoint().
|
delete |
|
delete |
OMStatus OMTrainingInterpreter::reset | ( | ) |
Definition at line 39 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::reset().
Referenced by training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_run().
Definition at line 90 of file OMTrainingInterpreter.h.
References onert_micro::core::OMRuntimeModule::run().
Referenced by package.infer.session::inference(), and nnfw_session::train_run().
Definition at line 120 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::createCheckpointFile(), onert_micro::Ok, and onert_micro::UnknownError.
Referenced by entry(), and nnfw_session::train_export_checkpoint().
Definition at line 51 of file OMTrainingInterpreter.cpp.
References onert_micro::Ok, and onert_micro::UnknownError.
Referenced by entry(), and nnfw_session::train_export_circle().
|
inline |
Definition at line 47 of file OMTrainingInterpreter.h.
References onert_micro::core::OMTrainingRuntimeModule::setInputData().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_set_input().
|
inline |
Definition at line 53 of file OMTrainingInterpreter.h.
References onert_micro::core::OMTrainingRuntimeModule::setTargetData().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_set_expected().
Definition at line 34 of file OMTrainingInterpreter.cpp.
References onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
Referenced by entry(), training_configure_tool::runTrainProcessWithCurConfig(), and nnfw_session::train_run().