Public Member Functions
ngraph::onnx_import::SubgraphCache Class Reference
Inheritance diagram for ngraph::onnx_import::SubgraphCache:
Inheritance graph
[legend]
Collaboration diagram for ngraph::onnx_import::SubgraphCache:
Collaboration graph
[legend]

Public Member Functions

 SubgraphCache (const GraphCache &parent_graph_cache)
 Constructs a SubgraphCache class object. More...
 
Output< ngraph::Nodeget_node (const std::string &name) const override
 Get the node from the cache (subgraph or parent graph) More...
 
bool contains (const std::string &name) const override
 Return true if the node named name exist in the cache. More...
 
- Public Member Functions inherited from ngraph::onnx_import::GraphCache
void emplace_node (const std::string &name, Output< ngraph::Node > &&node)
 Add node to the cache or override the existing one. More...
 

Constructor & Destructor Documentation

◆ SubgraphCache()

ngraph::onnx_import::SubgraphCache::SubgraphCache ( const GraphCache parent_graph_cache)

Constructs a SubgraphCache class object.

Parameters
[in]parent_graph_cacheThe reference to the parent graph.

Member Function Documentation

◆ contains()

bool ngraph::onnx_import::SubgraphCache::contains ( const std::string &  name) const
overridevirtual

Return true if the node named name exist in the cache.

Parameters
[in]nameThe name of the node.
Returns
true if the node named name exist in the cache (subgraph or parent graph), false otherwise.

Reimplemented from ngraph::onnx_import::GraphCache.

◆ get_node()

Output<ngraph::Node> ngraph::onnx_import::SubgraphCache::get_node ( const std::string &  name) const
overridevirtual

Get the node from the cache (subgraph or parent graph)

Note
If the node is not found the ngraph_error exception is thrown.
Parameters
[in]nameThe name of the node.
Returns
The node named name from subgraph (as present) or from parent graph.

Reimplemented from ngraph::onnx_import::GraphCache.


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