Commit ccf1ab8a authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

Remove check in get_argument because function uses new method to get Node (#3721)

parent 89f1eeed
......@@ -454,13 +454,6 @@ void Node::merge_provenance_tags_from(const std::shared_ptr<const Node>& source)
std::shared_ptr<Node> Node::get_argument(size_t index) const
{
for (auto& i : m_inputs)
{
NGRAPH_CHECK(i.get_output().get_node()->get_output_size() == 1,
"child ",
i.get_output().get_node()->get_name(),
" has multiple outputs");
}
NGRAPH_CHECK(
index < m_inputs.size(), "index '", index, "' out of range in get_argument(size_t index)");
return m_inputs[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