Commit aa8a7c11 authored by Nick Korovaiko's avatar Nick Korovaiko Committed by Adam Procter

revert a check for replacing multi-output nodes as we found a case where it's valid (#787)

parent 2fa3e1a8
......@@ -123,13 +123,6 @@ void ngraph::replace_node(std::shared_ptr<Node> target, std::shared_ptr<Node> re
throw ngraph_error("Result nodes cannot be replaced.");
}
if (target->get_outputs().size() > 1)
{
throw ngraph_error(
"Multi-output nodes should not be replaced directly. The corresponding "
"GetOutputElements should be replaced instead");
}
// Fix input/output descriptors
assert(target->get_outputs().size() == replacement->get_outputs().size());
......
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