ONE - On-device Neural Engine
|
#include <Model.h>
Public Member Functions | |
Model ()=default | |
Model (const Model &obj)=default | |
Model (Model &&)=default | |
Model & | operator= (const Model &)=default |
Model & | operator= (Model &&)=default |
~Model ()=default | |
void | push (SubgraphIndex index, const std::shared_ptr< IGraph > &subg) |
Put subgraph in the container with a new Index for that. | |
void | remove (const SubgraphIndex &index) |
Remove the subgraph that is associated with the given index. | |
const std::shared_ptr< IGraph > & | at (const SubgraphIndex &index) const |
Get the subgraph that is associated with the given index. | |
std::shared_ptr< IGraph > & | at (const SubgraphIndex &index) |
Get the subgraph that is associated with the given index. | |
bool | exist (const SubgraphIndex &index) const |
Get the subgraph that is associated with the given index. | |
void | iterate (const std::function< void(const SubgraphIndex &, const IGraph &)> &fn) const |
Iterate over the container with given function. | |
void | iterate (const std::function< void(const SubgraphIndex &, IGraph &)> &fn) |
Iterate over the container with given function. | |
size_t | subgraphs_count () const |
Get count of Subgraphs. | |
std::shared_ptr< IGraph > | primary_subgraph () const |
Return the primary subgraph. | |
template<typename Graph , std::enable_if_t< std::is_base_of< IGraph, Graph >::value, bool > = true> | |
bool | hasOnly () |
Return whether the model has only typename Graph. | |
void | bindKernelBuilder (const std::shared_ptr< onert::backend::custom::IKernelBuilder > &kernel_builder) |
const std::shared_ptr< backend::custom::IKernelBuilder > & | getKernelBuilder () const |
void | add_metadata (const std::string &name, std::unique_ptr< const ir::Data > data) |
bool | exists_metadata (const std::string &name) const |
std::unique_ptr< const ir::Data > | extract_metadata (const std::string name) |
|
default |
|
default |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return whether the model has only typename Graph.
Graph | Type that inherits from IGraph |
Definition at line 150 of file Model.h.
|
inline |
|
inline |
|
inline |
Return the primary subgraph.
Definition at line 140 of file Model.h.
|
inline |
|
inline |
|
inline |