ONE - On-device Neural Engine
|
#include <OMRuntimeContext.h>
Definition at line 36 of file OMRuntimeContext.h.
|
default |
|
delete |
|
default |
|
default |
|
inline |
Definition at line 93 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMCircleReader::inputs().
Referenced by onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs(), onert_micro::import::OMExecutionPlanCreator::createExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), and onert_micro::core::OMRuntimeGraph::getNumberOfInputs().
|
inline |
Definition at line 98 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMCircleReader::opcodes().
Referenced by onert_micro::import::OMKernelConfiguration::configureKernels(), onert_micro::import::OMExecutionPlanCreator::createBackwardExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), onert_micro::import::OMDynamicShapesHandler::importDynamicShapesFromTrainConfig(), onert_micro::train::OMBackpropExecute::runBackward(), and onert_micro::execute::OMKernelExecute::runForward().
const circle::Operator * OMRuntimeContext::getCircleOperatorAt | ( | uint16_t | index | ) |
Definition at line 22 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMCircleReader::operators(), and size.
Referenced by onert_micro::import::OMDynamicShapesHandler::importDynamicShapesFromTrainConfig(), and onert_micro::execute::OMRuntimeKernel::readKernel().
const reader::CircleOperators * OMRuntimeContext::getCircleOperators | ( | ) |
Definition at line 29 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMCircleReader::operators().
Referenced by onert_micro::import::OMKernelConfiguration::configureKernels(), onert_micro::import::OMExecutionPlanCreator::createBackwardExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), onert_micro::train::OMBackpropExecute::runBackward(), and onert_micro::execute::OMKernelExecute::runForward().
|
inline |
Definition at line 92 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMCircleReader::outputs().
Referenced by onert_micro::import::OMExecutionPlanCreator::createBackwardExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), onert_micro::core::train::OMTrainingHandler::evaluateMetric(), onert_micro::core::OMRuntimeGraph::getNumberOfOutputs(), and onert_micro::core::train::OMTrainingHandler::handleError().
|
inline |
Definition at line 94 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMCircleReader::tensors().
OMStatus OMRuntimeContext::getConstDataByTensorIndex | ( | uint8_t ** | data, |
uint16_t | tensor_index | ||
) |
Definition at line 53 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMWeightOnlyFormatReader::buffer(), onert_micro::core::reader::OMCircleReader::buffers(), getTensorByIndex(), onert_micro::Ok, and onert_micro::UnknownError.
Referenced by onert_micro::execute::OMRuntimeKernel::getDataFromStorage(), onert_micro::train::optimizers::Adam::updateWeights(), and onert_micro::train::optimizers::SGD::updateWeights().
uint32_t OMRuntimeContext::getGraphInputTensorIndex | ( | uint32_t | index | ) |
Definition at line 41 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMCircleReader::inputs().
Referenced by onert_micro::core::OMRuntimeGraph::getInputDataAt(), onert_micro::core::OMRuntimeGraph::getInputDataTypeSize(), and onert_micro::core::OMRuntimeGraph::getInputSizeAt().
uint32_t OMRuntimeContext::getGraphOutputTensorIndex | ( | uint32_t | index | ) |
Definition at line 47 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMCircleReader::outputs().
Referenced by onert_micro::core::OMRuntimeGraph::getOutputDataAt(), onert_micro::core::OMRuntimeGraph::getOutputDataTypeSize(), and onert_micro::core::OMRuntimeGraph::getOutputSizeAt().
const circle::Tensor * OMRuntimeContext::getTensorByIndex | ( | int32_t | tensor_index | ) |
Definition at line 34 of file OMRuntimeContext.cpp.
References onert_micro::core::reader::OMCircleReader::tensors().
Referenced by onert_micro::core::memory::OMRuntimeAllocator::allocate(), onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs(), onert_micro::core::memory::OMRuntimeAllocator::clearAllTensorsData(), onert_micro::core::train::OMTrainingHandler::evaluateMetric(), getConstDataByTensorIndex(), onert_micro::core::OMRuntimeGraph::getInputDataTypeSize(), onert_micro::core::OMRuntimeGraph::getInputSizeAt(), onert_micro::core::OMRuntimeGraph::getOutputDataTypeSize(), onert_micro::core::OMRuntimeGraph::getOutputSizeAt(), onert_micro::train::optimizers::Adam::handle(), onert_micro::train::optimizers::SGD::handle(), onert_micro::core::train::OMTrainingHandler::handleError(), onert_micro::import::OMDynamicShapesHandler::importDynamicShapesFromTrainConfig(), onert_micro::execute::OMRuntimeKernel::readKernel(), onert_micro::train::optimizers::Adam::updateWeights(), and onert_micro::train::optimizers::SGD::updateWeights().
|
inline |
Definition at line 85 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMTrainingConfigReader::getTrainableOpsIndexes().
Referenced by onert_micro::import::OMExecutionPlanCreator::createBackwardExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan(), onert_micro::import::OMDynamicShapesHandler::importDynamicShapesFromTrainConfig(), and onert_micro::train::OMBackpropExecute::runBackward().
|
inline |
Definition at line 90 of file OMRuntimeContext.h.
References onert_micro::core::reader::OMCircleReader::isConstTensor().
Referenced by onert_micro::import::OMExecutionPlanCreator::createBackwardExecutionPlan(), onert_micro::import::OMExecutionPlanCreator::createExecutionPlan(), and onert_micro::import::OMExecutionPlanCreator::createForwardExecutionPlan().
|
delete |
|
delete |
|
inline |
Definition at line 51 of file OMRuntimeContext.h.
References onert_micro::Ok, onert_micro::core::reader::OMCircleReader::parse(), and onert_micro::core::reader::OMCircleReader::select_subgraph().
Referenced by onert_micro::core::OMRuntimeModule::importModel(), and onert_micro::core::OMTrainingRuntimeModule::importTrainModel().
|
inline |
Definition at line 74 of file OMRuntimeContext.h.
References onert_micro::Ok, onert_micro::core::reader::OMTrainingConfigReader::parse(), and onert_micro::core::reader::OMTrainingConfigReader::validate().
Referenced by onert_micro::core::OMRuntimeModule::importModel(), and onert_micro::core::OMTrainingRuntimeModule::importTrainModel().
|
inline |
Definition at line 63 of file OMRuntimeContext.h.
References onert_micro::Ok, onert_micro::core::reader::OMWeightOnlyFormatReader::parse(), and onert_micro::core::reader::OMWeightOnlyFormatReader::validate().
Referenced by onert_micro::core::OMRuntimeModule::importModel(), and onert_micro::core::OMTrainingRuntimeModule::importTrainModel().