GraphCache stores and provides access to ONNX graph initializers. More...
#include <graph_cache.hpp>
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::Node > | get_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... | |
GraphCache stores and provides access to ONNX graph initializers.
|
virtual |
Return true if the node named name
exist in the cache.
[in] | name | The name of the node. |
name
exist in the cache, false otherwise. Reimplemented in ngraph::onnx_import::SubgraphCache.
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.
[in] | name | The name of node added to the cache. |
[in] | node | The node added to the cache. |
|
virtual |
Get the node from the cache.
[in] | name | The name of the node. |
name
. Reimplemented in ngraph::onnx_import::SubgraphCache.