Commit 31071957 authored by Rob Earhart's avatar Rob Earhart Committed by Robert Kimball

Minor tweaks for older g++ support (#2362)

parent 4d272f1f
...@@ -187,7 +187,7 @@ namespace ngraph ...@@ -187,7 +187,7 @@ namespace ngraph
OpImplRegistration() OpImplRegistration()
{ {
GlobalOpImplMap()->emplace(std::type_index{typeid(typename OID::Impl::Op)}, GlobalOpImplMap()->emplace(std::type_index{typeid(typename OID::Impl::Op)},
new OID()); std::unique_ptr<OpImplDescriptorBase>{new OID()});
} }
}; };
} }
......
...@@ -84,7 +84,7 @@ void ngraph::runtime::plaidml::pass::ExplicitLogicals::construct_logical_to_data ...@@ -84,7 +84,7 @@ void ngraph::runtime::plaidml::pass::ExplicitLogicals::construct_logical_to_data
vertexai::plaidml::function{"function (I) -> (O) { O = as_int(I ? 1 : 0, 8);}"}, vertexai::plaidml::function{"function (I) -> (O) { O = as_int(I ? 1 : 0, 8);}"},
NodeVector{producer}, NodeVector{producer},
std::vector<std::tuple<element::Type, PartialShape>>{ std::vector<std::tuple<element::Type, PartialShape>>{
{element::i8, PartialShape{producer->get_output_shape(0)}}})); {std::make_tuple(element::i8, PartialShape{producer->get_output_shape(0)})}}));
return true; return true;
}; };
......
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