ONE - On-device Neural Engine
|
Class to gather executor set for single model NN package. More...
#include <SingleModelExecutors.h>
Public Member Functions | |
SingleModelExecutors (void)=default | |
Construct a new SingleModelExecutors object. | |
SingleModelExecutors (const SingleModelExecutors &)=delete | |
SingleModelExecutors (SingleModelExecutors &&)=default | |
~SingleModelExecutors ()=default | |
Destroy the SingleModelExecutors object. | |
void | emplace (const ir::ModelIndex &model_index, const ir::SubgraphIndex &subg_index, std::unique_ptr< IExecutor > exec) override |
Insert executor in executor set. | |
IExecutor * | at (const ir::ModelIndex &model_index, const ir::SubgraphIndex &subg_index) const override |
Return executor of index. | |
uint32_t | inputSize () const override |
Return executor set's number of input. | |
uint32_t | outputSize () const override |
Return executor set's number of output. | |
const ir::OperandInfo & | inputInfo (const ir::IOIndex &index) const override |
Return NN package input tensor info. | |
const ir::OperandInfo & | outputInfo (const ir::IOIndex &index) const override |
Return NN package output tensor info. | |
void | execute (const ExecutionContext &ctx) override |
Execute NN package executor set. | |
Public Member Functions inherited from onert::exec::IExecutors | |
virtual | ~IExecutors ()=default |
Virtual IExecutors destructor. | |
IExecutor * | entryExecutor () const |
Class to gather executor set for single model NN package.
Definition at line 31 of file SingleModelExecutors.h.
|
default |
Construct a new SingleModelExecutors object.
|
delete |
|
default |
|
default |
Destroy the SingleModelExecutors object.
|
overridevirtual |
Return executor of index.
[in] | model_index | Model index |
[in] | subg_index | Subgraph index |
Implements onert::exec::IExecutors.
Definition at line 34 of file SingleModelExecutors.cc.
|
overridevirtual |
Insert executor in executor set.
[in] | model_index | Model index |
[in] | subg_index | Subgraph index |
[in] | exec | Executor to insert |
Implements onert::exec::IExecutors.
Definition at line 28 of file SingleModelExecutors.cc.
|
overridevirtual |
Execute NN package executor set.
[in] | ctx | Execution context |
Implements onert::exec::IExecutors.
Definition at line 54 of file SingleModelExecutors.cc.
References onert::ir::COPY, onert::exec::ExecutionContext::desc, onert::exec::IExecutors::entryExecutor(), onert::exec::IExecutor::execute(), onert::exec::IExecutor::inputInfo(), onert::exec::IODescription::inputs, onert::ir::NCHW, onert::ir::NCHW_TO_NHWC, onert::ir::NHWC_TO_NCHW, onert::exec::ExecutionContext::options, onert::exec::IExecutor::outputInfo(), onert::exec::IODescription::outputs, onert::ir::TypeInfo::type(), and onert::ir::OperandInfo::typeInfo().
|
overridevirtual |
Return NN package input tensor info.
[in] | index | Input index |
Implements onert::exec::IExecutors.
Definition at line 44 of file SingleModelExecutors.cc.
References onert::exec::IExecutors::entryExecutor(), and onert::exec::IExecutor::inputInfo().
|
overridevirtual |
Return executor set's number of input.
Implements onert::exec::IExecutors.
Definition at line 40 of file SingleModelExecutors.cc.
References onert::exec::IExecutors::entryExecutor(), and onert::exec::IExecutor::inputSize().
|
overridevirtual |
Return NN package output tensor info.
[in] | index | Output index |
Implements onert::exec::IExecutors.
Definition at line 49 of file SingleModelExecutors.cc.
References onert::exec::IExecutors::entryExecutor(), and onert::exec::IExecutor::outputInfo().
|
overridevirtual |
Return executor set's number of output.
Implements onert::exec::IExecutors.
Definition at line 42 of file SingleModelExecutors.cc.
References onert::exec::IExecutors::entryExecutor(), and onert::exec::IExecutor::outputSize().