ONE - On-device Neural Engine
|
#include <OMRuntimeGraph.h>
Public Member Functions | |
OMRuntimeGraph ()=default | |
OMRuntimeGraph (const OMRuntimeGraph &)=delete | |
OMRuntimeGraph (OMRuntimeGraph &&)=default | |
OMRuntimeGraph & | operator= (const OMRuntimeGraph &)=delete |
OMRuntimeGraph && | operator= (const OMRuntimeGraph &&)=delete |
~OMRuntimeGraph () | |
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) |
size_t | getInputDataTypeSize (uint32_t position) |
size_t | getOutputDataTypeSize (uint32_t position) |
OMStatus | allocateGraphInputs () |
OMStatus | reset () |
OMRuntimeStorage & | getRuntimeStorage () |
memory::OMRuntimeAllocator & | getRuntimeAllocator () |
OMRuntimeContext & | getRuntimeContext () |
Definition at line 33 of file OMRuntimeGraph.h.
|
default |
|
delete |
|
default |
OMRuntimeGraph::~OMRuntimeGraph | ( | ) |
Definition at line 33 of file OMRuntimeGraph.cpp.
References reset().
OMStatus OMRuntimeGraph::allocateGraphInputs | ( | ) |
Definition at line 67 of file OMRuntimeGraph.cpp.
References onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
void * OMRuntimeGraph::getInputDataAt | ( | uint32_t | position | ) |
Definition at line 42 of file OMRuntimeGraph.cpp.
References onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs(), onert_micro::core::OMRuntimeStorage::getDataByTensorIndex(), and onert_micro::core::OMRuntimeContext::getGraphInputTensorIndex().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
size_t OMRuntimeGraph::getInputDataTypeSize | ( | uint32_t | position | ) |
Definition at line 81 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeContext::getGraphInputTensorIndex(), and onert_micro::core::OMRuntimeContext::getTensorByIndex().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
uint32_t OMRuntimeGraph::getInputSizeAt | ( | uint32_t | position | ) |
Definition at line 100 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeShape::flatSize(), onert_micro::core::OMRuntimeContext::getGraphInputTensorIndex(), and onert_micro::core::OMRuntimeContext::getTensorByIndex().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
uint32_t OMRuntimeGraph::getNumberOfInputs | ( | ) |
Definition at line 118 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeContext::getCircleInputs().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
uint32_t OMRuntimeGraph::getNumberOfOutputs | ( | ) |
Definition at line 109 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeContext::getCircleOutputs(), and flatbuffers::Vector< T >::size().
void * OMRuntimeGraph::getOutputDataAt | ( | uint32_t | position | ) |
Definition at line 58 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeStorage::getDataByTensorIndex(), and onert_micro::core::OMRuntimeContext::getGraphOutputTensorIndex().
size_t OMRuntimeGraph::getOutputDataTypeSize | ( | uint32_t | position | ) |
Definition at line 90 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeContext::getGraphOutputTensorIndex(), and onert_micro::core::OMRuntimeContext::getTensorByIndex().
uint32_t OMRuntimeGraph::getOutputSizeAt | ( | uint32_t | position | ) |
Definition at line 72 of file OMRuntimeGraph.cpp.
References onert_micro::core::OMRuntimeShape::flatSize(), onert_micro::core::OMRuntimeContext::getGraphOutputTensorIndex(), and onert_micro::core::OMRuntimeContext::getTensorByIndex().
|
inline |
Definition at line 66 of file OMRuntimeGraph.h.
Referenced by onert_micro::core::OMRuntimeModule::run(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
|
inline |
Definition at line 68 of file OMRuntimeGraph.h.
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), onert_micro::core::OMRuntimeModule::run(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
|
inline |
Definition at line 64 of file OMRuntimeGraph.h.
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), onert_micro::core::OMRuntimeModule::run(), and onert_micro::core::OMTrainingRuntimeModule::trainSingleStep().
|
delete |
|
delete |
OMStatus OMRuntimeGraph::reset | ( | ) |
Definition at line 25 of file OMRuntimeGraph.cpp.
References onert_micro::core::memory::OMRuntimeAllocator::clearAllTensorsData(), and onert_micro::core::OMRuntimeStorage::clearTensorIndexToData().
Referenced by onert_micro::core::OMTrainingRuntimeModule::evaluateMetric(), onert_micro::core::OMTrainingRuntimeModule::trainSingleStep(), and ~OMRuntimeGraph().