9 #include "ngraph/ngraph_visibility.hpp"
10 #include "ngraph/node.hpp"
11 #include "ngraph/type.hpp"
15 using VariantTypeInfo = DiscreteTypeInfo;
23 virtual std::shared_ptr<ngraph::Variant> init(
const std::shared_ptr<ngraph::Node>& node);
24 virtual std::shared_ptr<ngraph::Variant> merge(
const ngraph::NodeVector& nodes);
27 template <
typename VT>
31 using value_type = VT;
38 const value_type& get()
const {
return m_value; }
39 value_type& get() {
return m_value; }
40 void set(
const value_type& value) { m_value = value; }
49 template <
typename VT>
59 const VariantTypeInfo& get_type_info()
const override {
return type_info; }
71 const VariantTypeInfo& get_type_info()
const override {
return type_info; }
Definition: variant.hpp:29
Definition: variant.hpp:68
Definition: variant.hpp:56
Definition: variant.hpp:51
Definition: variant.hpp:18
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16