|
ONE - On-device Neural Engine
|
#include <OMRuntimeModule.h>
Public Member Functions | |
| OMRuntimeModule ()=default | |
| OMRuntimeModule (const OMRuntimeModule &)=delete | |
| OMRuntimeModule (OMRuntimeModule &&)=delete | |
| OMRuntimeModule & | operator= (const OMRuntimeModule &)=delete |
| OMRuntimeModule && | operator= (const OMRuntimeModule &&)=delete |
| ~OMRuntimeModule ()=default | |
| OMStatus | importModel (const char *model_ptr, const OMConfig &config) |
| OMStatus | run (const OMConfig &config) |
| OMStatus | reset () |
| uint32_t | getNumberOfInputs () |
| uint32_t | getNumberOfOutputs () |
| uint32_t | getInputSizeAt (uint32_t position) |
| uint32_t | getOutputSizeAt (uint32_t position) |
| void * | getInputDataAt (uint32_t position) |
| void * | getOutputDataAt (uint32_t position) |
| OMStatus | getRuntimeGraphAt (uint32_t pos, OMRuntimeGraph **runtime_graph) |
| OMStatus | allocateInputs () |
Protected Attributes | |
| std::vector< OMRuntimeGraph > | _graphs |
Definition at line 32 of file OMRuntimeModule.h.
|
default |
|
delete |
|
delete |
|
default |
| OMStatus OMRuntimeModule::allocateInputs | ( | ) |
Definition at line 143 of file OMRuntimeModule.cpp.
References _graphs, and onert_micro::ModelNotImport.
Referenced by onert_micro::OMInterpreter::allocateInputs(), and onert_micro::OMTrainingInterpreter::allocateInputs().
| void * OMRuntimeModule::getInputDataAt | ( | uint32_t | position | ) |
Definition at line 41 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getInputDataAt(), and onert_micro::OMTrainingInterpreter::getInputDataAt().
| uint32_t OMRuntimeModule::getInputSizeAt | ( | uint32_t | position | ) |
Definition at line 31 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getInputSizeAt(), and onert_micro::OMTrainingInterpreter::getInputSizeAt().
| uint32_t OMRuntimeModule::getNumberOfInputs | ( | ) |
Definition at line 27 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getNumberOfInputs().
| uint32_t OMRuntimeModule::getNumberOfOutputs | ( | ) |
Definition at line 29 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getNumberOfOutputs().
| void * OMRuntimeModule::getOutputDataAt | ( | uint32_t | position | ) |
Definition at line 46 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getOutputDataAt(), and onert_micro::OMTrainingInterpreter::getOutputDataAt().
| uint32_t OMRuntimeModule::getOutputSizeAt | ( | uint32_t | position | ) |
Definition at line 36 of file OMRuntimeModule.cpp.
References _graphs.
Referenced by onert_micro::OMInterpreter::getOutputSizeAt(), and onert_micro::OMTrainingInterpreter::getOutputSizeAt().
| OMStatus OMRuntimeModule::getRuntimeGraphAt | ( | uint32_t | pos, |
| OMRuntimeGraph ** | runtime_graph | ||
| ) |
Definition at line 189 of file OMRuntimeModule.cpp.
References _graphs, onert_micro::Ok, OM_LOG_AND_RETURN, and onert_micro::UnknownError.
Referenced by onert_micro::import::configure_kernel_CircleWhile(), and onert_micro::execute::execute_kernel_CircleWhile().
Definition at line 51 of file OMRuntimeModule.cpp.
References _graphs, onert_micro::import::OMKernelConfiguration::configureKernels(), onert_micro::import::OMExecutionPlanCreator::createExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), onert_micro::core::reader::OMCircleReader::num_subgraph(), onert_micro::Ok, OM_LOG_AND_RETURN, onert_micro::optimize::OMOptimizer::optimize(), onert_micro::core::reader::OMCircleReader::parse(), onert_micro::core::OMRuntimeContext::setModel(), onert_micro::core::OMRuntimeContext::setTrainConfigFile(), onert_micro::core::OMRuntimeContext::setWofFile(), and onert_micro::UnknownError.
Referenced by onert_micro::OMInterpreter::importModel(), and onert_micro::core::OMTrainingRuntimeModule::importTrainModel().
|
delete |
|
delete |
| OMStatus OMRuntimeModule::reset | ( | ) |
Definition at line 174 of file OMRuntimeModule.cpp.
References _graphs, onert_micro::ModelNotImport, and onert_micro::Ok.
Referenced by onert_micro::OMInterpreter::reset().
Definition at line 151 of file OMRuntimeModule.cpp.
References _graphs, onert_micro::core::OMRuntimeGraph::getRuntimeAllocator(), onert_micro::core::OMRuntimeGraph::getRuntimeContext(), onert_micro::core::OMRuntimeGraph::getRuntimeStorage(), onert_micro::ModelNotImport, onert_micro::Ok, and onert_micro::execute::OMKernelExecute::runForward().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), onert_micro::OMInterpreter::run(), onert_micro::OMTrainingInterpreter::run(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
|
protected |
Definition at line 35 of file OMRuntimeModule.h.
Referenced by allocateInputs(), onert_micro::core::OMTrainingRuntimeModule::createCheckpointFile(), onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), getInputDataAt(), getInputSizeAt(), getNumberOfInputs(), getNumberOfOutputs(), getOutputDataAt(), getOutputSizeAt(), getRuntimeGraphAt(), importModel(), onert_micro::core::OMTrainingRuntimeModule::importTrainModel(), onert_micro::core::OMTrainingRuntimeModule::loadCheckpointData(), reset(), onert_micro::core::OMTrainingRuntimeModule::reset(), run(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().