ONE - On-device Neural Engine
|
Class to gather executors. More...
#include <MultiModelExecutors.h>
Public Member Functions | |
MultiModelExecutors (void)=delete | |
MultiModelExecutors (std::unique_ptr< ir::ModelEdges > model_edges) | |
MultiModelExecutors (const MultiModelExecutors &)=delete | |
MultiModelExecutors (MultiModelExecutors &&)=default | |
~MultiModelExecutors ()=default | |
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 executors.
Definition at line 48 of file MultiModelExecutors.h.
|
delete |
|
inline |
Definition at line 52 of file MultiModelExecutors.h.
|
delete |
|
default |
|
default |
|
overridevirtual |
Return executor of index.
[in] | model_index | Model index |
[in] | subg_index | Subgraph index |
Implements onert::exec::IExecutors.
Definition at line 68 of file MultiModelExecutors.cc.
Referenced by execute(), inputInfo(), and outputInfo().
|
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 61 of file MultiModelExecutors.cc.
|
overridevirtual |
Execute NN package executor set.
[in] | ctx | Execution context |
Implements onert::exec::IExecutors.
Definition at line 374 of file MultiModelExecutors.cc.
References at(), onert::exec::ExecutionContext::desc, onert::exec::IExecutor::inputSize(), onert::exec::ExecutionContext::options, and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Return NN package input tensor info.
[in] | index | Input index |
Implements onert::exec::IExecutors.
Definition at line 78 of file MultiModelExecutors.cc.
References at(), and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Return executor set's number of input.
Implements onert::exec::IExecutors.
Definition at line 74 of file MultiModelExecutors.cc.
|
overridevirtual |
Return NN package output tensor info.
[in] | index | Output index |
Implements onert::exec::IExecutors.
Definition at line 88 of file MultiModelExecutors.cc.
References at(), and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Return executor set's number of output.
Implements onert::exec::IExecutors.
Definition at line 76 of file MultiModelExecutors.cc.