Commit 02fad9e7 authored by Matthew Brookhart's avatar Matthew Brookhart Committed by Scott Cyphers

fix a bug in get_output_element (#1653)

parent b0b8719d
......@@ -50,7 +50,7 @@ namespace ngraph
inline std::shared_ptr<Node> get_output_element(const std::shared_ptr<Node> node, size_t i = 0)
{
return ((i == 0) && node->get_input_size() == 1)
return ((i == 0) && node->get_output_size() == 1)
? node
: std::make_shared<op::GetOutputElement>(node, i);
}
......
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