Unverified Commit 8855eb16 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by GitHub

Export AttributeAdapter specializations used in Inference Engine (#4264)

Co-authored-by: 's avatarRobert Kimball <robert.kimball@intel.com>
Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
parent b5542083
...@@ -286,15 +286,15 @@ namespace ngraph ...@@ -286,15 +286,15 @@ namespace ngraph
std::ostream& operator<<(std::ostream& str, const PartialShape& shape); std::ostream& operator<<(std::ostream& str, const PartialShape& shape);
template <> template <>
class AttributeAdapter<PartialShape> : public ValueReference<PartialShape>, class NGRAPH_API AttributeAdapter<PartialShape> : public ValueReference<PartialShape>,
public ValueAccessor<void> public ValueAccessor<void>
{ {
public: public:
AttributeAdapter(PartialShape& value) AttributeAdapter(PartialShape& value)
: ValueReference<PartialShape>(value) : ValueReference<PartialShape>(value)
{ {
} }
NGRAPH_API
static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<PartialShape>", 0}; static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<PartialShape>", 0};
const DiscreteTypeInfo& get_type_info() const override { return type_info; } const DiscreteTypeInfo& get_type_info() const override { return type_info; }
}; };
......
...@@ -40,7 +40,7 @@ const element::Type element::u16(element::Type_t::u16); ...@@ -40,7 +40,7 @@ const element::Type element::u16(element::Type_t::u16);
const element::Type element::u32(element::Type_t::u32); const element::Type element::u32(element::Type_t::u32);
const element::Type element::u64(element::Type_t::u64); const element::Type element::u64(element::Type_t::u64);
NGRAPH_API constexpr DiscreteTypeInfo AttributeAdapter<element::Type>::type_info; constexpr DiscreteTypeInfo AttributeAdapter<element::Type>::type_info;
class TypeInfo class TypeInfo
{ {
......
...@@ -186,15 +186,15 @@ namespace ngraph ...@@ -186,15 +186,15 @@ namespace ngraph
std::ostream& operator<<(std::ostream& out, const ngraph::element::Type& obj); std::ostream& operator<<(std::ostream& out, const ngraph::element::Type& obj);
} }
template <> template <>
class AttributeAdapter<element::Type> : public ValueReference<element::Type>, class NGRAPH_API AttributeAdapter<element::Type> : public ValueReference<element::Type>,
public ValueAccessor<void> public ValueAccessor<void>
{ {
public: public:
AttributeAdapter(element::Type& value) AttributeAdapter(element::Type& value)
: ValueReference<element::Type>(value) : ValueReference<element::Type>(value)
{ {
} }
NGRAPH_API
static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<element::Type>", 0}; static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<element::Type>", 0};
const DiscreteTypeInfo& get_type_info() const override { return type_info; } const DiscreteTypeInfo& get_type_info() const override { return type_info; }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment