ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::Graph Class Referencefinal

A neural network graph. More...

#include <Graph.h>

Collaboration diagram for loco::Graph:

Data Structures

struct  InputContext
 GraphInput Pool. More...
 
struct  OutputContext
 GraphOutput Pool. More...
 
struct  SimpleFactoryObjectPool
 Object Pool with Simple Factory Method. More...
 

Public Types

using NodeContext = NodePool
 Node Pool.
 

Public Member Functions

 Graph ()
 
 Graph (const Graph &)=delete
 
 Graph (Graph &&)=delete
 
 ~Graph ()=default
 
NodeContextnodes (void)
 
const NodeContextnodes (void) const
 
InputContextinputs (void)
 
const InputContextinputs (void) const
 
OutputContextoutputs (void)
 
const OutputContextoutputs (void) const
 
- Public Member Functions inherited from loco::NamedEntity
const std::string & name (void) const
 
void name (const std::string &name)
 

Detailed Description

Member Typedef Documentation

◆ NodeContext

Node Pool.

This alias confines the impact of changes to loco internals.

TODO Remove this alias

Definition at line 170 of file Graph.h.

Constructor & Destructor Documentation

◆ Graph() [1/3]

loco::Graph::Graph ( )
inline

Definition at line 205 of file Graph.h.

206 {
207 // Associate "NodeContext" and the current "Graph"
208 _node_ctx.graph(this);
209 }

◆ Graph() [2/3]

loco::Graph::Graph ( const Graph )
delete

◆ Graph() [3/3]

loco::Graph::Graph ( Graph &&  )
delete

◆ ~Graph()

loco::Graph::~Graph ( )
default

Member Function Documentation

◆ inputs() [1/2]

◆ inputs() [2/2]

const InputContext * loco::Graph::inputs ( void  ) const
inline

Definition at line 221 of file Graph.h.

221{ return &_input_ctx; }

Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().

◆ nodes() [1/2]

◆ nodes() [2/2]

const NodeContext * loco::Graph::nodes ( void  ) const
inline

Definition at line 219 of file Graph.h.

219{ return &_node_ctx; }

◆ outputs() [1/2]

◆ outputs() [2/2]

const OutputContext * loco::Graph::outputs ( void  ) const
inline

The documentation for this class was generated from the following file: