Commit e0384a8d authored by Nick Korovaiko's avatar Nick Korovaiko Committed by Robert Kimball

fix assert (#1660)

parent ad2e0097
......@@ -154,10 +154,8 @@ std::shared_ptr<Node> Node::get_argument(size_t index) const
{
for (auto& i : get_inputs())
{
if (i.get_output().get_node()->get_outputs().size() != 1)
{
throw "get_argument called on an argument w/ multiple outputs";
}
NGRAPH_ASSERT(i.get_output().get_node()->get_outputs().size() == 1)
<< "child " << i.get_output().get_node()->get_name() << " has multiple outputs";
}
return m_inputs.at(index).get_output().get_node();
}
......
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