Public Member Functions
ngraph::onnx_import::GraphCache Class Reference

GraphCache stores and provides access to ONNX graph initializers. More...

#include <graph_cache.hpp>

Inheritance diagram for ngraph::onnx_import::GraphCache:
Inheritance graph
[legend]

Public Member Functions

void emplace_node (const std::string &name, Output< ngraph::Node > &&node)
 Add node to the cache or override the existing one. More...
 
virtual Output< ngraph::Nodeget_node (const std::string &name) const
 Get the node from the cache. More...
 
virtual bool contains (const std::string &name) const
 Return true if the node named name exist in the cache. More...
 

Detailed Description

GraphCache stores and provides access to ONNX graph initializers.

Member Function Documentation

◆ contains()

virtual bool ngraph::onnx_import::GraphCache::contains ( const std::string &  name) const
virtual

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, false otherwise.

Reimplemented in ngraph::onnx_import::SubgraphCache.

◆ emplace_node()

void ngraph::onnx_import::GraphCache::emplace_node ( const std::string &  name,
Output< ngraph::Node > &&  node 
)

Add node to the cache or override the existing one.

Note
GraphCahce takes ownership of the node.
Parameters
[in]nameThe name of node added to the cache.
[in]nodeThe node added to the cache.

◆ get_node()

virtual Output<ngraph::Node> ngraph::onnx_import::GraphCache::get_node ( const std::string &  name) const
virtual

Get the node from the cache.

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.

Reimplemented in ngraph::onnx_import::SubgraphCache.


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