Class ov::pass::NodeRegistry#

class NodeRegistry#

Register openvino node pointers into container. Can create and/or add existing node pointers into register.

Public Functions

template<typename T, class ...Args>
inline std::shared_ptr<T> make(Args&&... args)#

Make new node and add it to register.

Template Parameters:
  • TNode type.

  • ArgsNode ctor args types.

Parameters:

args – New node ctor arguments.

Returns:

Shared pointer to node of type T.

template<typename T>
inline std::shared_ptr<T> add(const std::shared_ptr<T> &node)#

Add node to register.

Template Parameters:

TNode type.

Parameters:

nodeNode to add

Returns:

Shared pointer to new node added of type T.

inline const std::vector<std::shared_ptr<Node>> &get() const#

Get nodes container.

Returns:

Const reference to nodes container.

void clear()#

Clear register.