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
std::ostream& operator<<(std::ostream& str, const PartialShape& shape);
template <>
class AttributeAdapter<PartialShape> : public ValueReference<PartialShape>,
public ValueAccessor<void>
class NGRAPH_API AttributeAdapter<PartialShape> : public ValueReference<PartialShape>,
public ValueAccessor<void>
{
public:
AttributeAdapter(PartialShape& value)
: ValueReference<PartialShape>(value)
{
}
NGRAPH_API
static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<PartialShape>", 0};
const DiscreteTypeInfo& get_type_info() const override { return type_info; }
};
......
......@@ -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::u64(element::Type_t::u64);
NGRAPH_API constexpr DiscreteTypeInfo AttributeAdapter<element::Type>::type_info;
constexpr DiscreteTypeInfo AttributeAdapter<element::Type>::type_info;
class TypeInfo
{
......
......@@ -186,15 +186,15 @@ namespace ngraph
std::ostream& operator<<(std::ostream& out, const ngraph::element::Type& obj);
}
template <>
class AttributeAdapter<element::Type> : public ValueReference<element::Type>,
public ValueAccessor<void>
class NGRAPH_API AttributeAdapter<element::Type> : public ValueReference<element::Type>,
public ValueAccessor<void>
{
public:
AttributeAdapter(element::Type& value)
: ValueReference<element::Type>(value)
{
}
NGRAPH_API
static constexpr DiscreteTypeInfo type_info{"AttributeAdapter<element::Type>", 0};
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