Fix output function of task manager. Without topological sorting,
endpoint node couldn't be positioned as last node of pipeline,
and it results in losting result value from inference node because
node.back() couldn't be endpoint node. So find endpoint node from
the pipeline(_nodes) and get the result from the endpoint node.
Change-Id: I697732527b6fb44afec873c329cc0f441b3e6ee3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
}
_results.clear();
- _results = _nodes.back()->results();
+ for (auto &node : _nodes) {
+ if (node->getType() == NodeType::ENDPOINT) {
+ _results = node->results();
+ break;
+ }
+ }
return _results;
}