19 #include "ngraph/attribute_adapter.hpp"
20 #include "ngraph/attribute_visitor.hpp"
21 #include "ngraph/factory.hpp"
25 template <
typename BASE_TYPE>
42 std::string type_info_name;
43 uint64_t type_info_version;
46 auto& type_info = m_ref->get_type_info();
47 type_info_name = type_info.name;
48 type_info_version = type_info.version;
55 m_ref->visit_attributes(visitor);
64 std::shared_ptr<BASE_TYPE>& m_ref;
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
virtual void start_structure(const std::string &name)
Start visiting a nested structure.
void on_attribute(const std::string &name, AT &value)
Definition: attribute_visitor.hpp:129
virtual std::string finish_structure()
Finish visiting a nested structure.
Definition: factory_adapter.hpp:27
virtual bool on_start(AttributeVisitor &)
Hook for extra processing before other attributes.
Definition: factory_adapter.hpp:35
virtual bool on_finish(AttributeVisitor &)
Hook for extra processing after other attributes.
Definition: factory_adapter.hpp:37
Adapters will see visitor.
Definition: attribute_adapter.hpp:194
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28