21 #include "ngraph/ngraph_visibility.hpp"
22 #include "ngraph/node.hpp"
23 #include "ngraph/type.hpp"
27 using VariantTypeInfo = DiscreteTypeInfo;
35 virtual std::shared_ptr<ngraph::Variant> init(
const std::shared_ptr<ngraph::Node>& node);
36 virtual std::shared_ptr<ngraph::Variant> merge(
const ngraph::NodeVector& nodes);
39 template <
typename VT>
43 using value_type = VT;
50 const value_type& get()
const {
return m_value; }
51 value_type& get() {
return m_value; }
52 void set(
const value_type& value) { m_value = value; }
60 template <
typename VT>
70 const VariantTypeInfo& get_type_info()
const override {
return type_info; }
82 const VariantTypeInfo& get_type_info()
const override {
return type_info; }
Definition: variant.hpp:41
Definition: variant.hpp:79
Definition: variant.hpp:67
Definition: variant.hpp:62
Definition: variant.hpp:30
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28