ONE - On-device Neural Engine
|
Class to store relations of Nodes and string names. More...
#include <GraphBuilderContext.h>
Public Member Functions | |
void | enroll (const std::string &node_name, loco::Node *node) |
Registers one node for a name. | |
loco::Node * | node (const std::string &node_name) |
Queries enrolled(registered) with name and return node if found Will throw runtime_error if not found Table is independent with registering with list() | |
void | list (loco::Node *node, const std::string &name) |
Registers multiple (appends) names for a node Table is independent with registering with enroll() | |
unsigned | size (loco::Node *node) |
Returns number of listed(registered) names for a node. | |
const std::string & | name (loco::Node *node, unsigned index) |
Queries listed(registered) with node and index(from 0 to size-1) Will throw runtime_error if node is not found or index is out of bounds. | |
Class to store relations of Nodes and string names.
Definition at line 34 of file GraphBuilderContext.h.
void moco::onnx::SymbolTable::enroll | ( | const std::string & | node_name, |
loco::Node * | node | ||
) |
Registers one node for a name.
Definition at line 24 of file GraphBuilderContext.cpp.
References node().
Referenced by moco::onnx::Constant_V1::build(), moco::onnx::Constant_V9::build(), and moco::onnx::Identity_V1::build().
void moco::onnx::SymbolTable::list | ( | loco::Node * | node, |
const std::string & | name | ||
) |
Registers multiple (appends) names for a node Table is independent with registering with enroll()
Definition at line 48 of file GraphBuilderContext.cpp.
References name(), and node().
Referenced by moco::onnx::Identity_V1::build().
const std::string & moco::onnx::SymbolTable::name | ( | loco::Node * | node, |
unsigned | index | ||
) |
Queries listed(registered) with node and index(from 0 to size-1) Will throw runtime_error if node is not found or index is out of bounds.
Definition at line 74 of file GraphBuilderContext.cpp.
References moco::index(), and node().
Referenced by list().
loco::Node * moco::onnx::SymbolTable::node | ( | const std::string & | node_name | ) |
Queries enrolled(registered) with name and return node if found Will throw runtime_error if not found Table is independent with registering with list()
Definition at line 36 of file GraphBuilderContext.cpp.
unsigned moco::onnx::SymbolTable::size | ( | loco::Node * | node | ) |
Returns number of listed(registered) names for a node.
Definition at line 62 of file GraphBuilderContext.cpp.
References node().