[IE TESTS] Add body to the reporting (#9430)
This commit is contained in:
parent
f96a5183fb
commit
c6079ccc11
@ -163,6 +163,14 @@ void Summary::updateOPsStats(const std::shared_ptr<ngraph::Function> &function,
|
|||||||
auto loop = ngraph::as_type_ptr<ngraph::op::v5::Loop>(op);
|
auto loop = ngraph::as_type_ptr<ngraph::op::v5::Loop>(op);
|
||||||
auto loop_body = loop->get_function();
|
auto loop_body = loop->get_function();
|
||||||
updateOPsStats(loop_body, status);
|
updateOPsStats(loop_body, status);
|
||||||
|
} else if (ngraph::is_type<ngraph::op::v8::If>(op)) {
|
||||||
|
updateOPsStats(op->get_type_info(), status);
|
||||||
|
auto if_op = ngraph::as_type_ptr<ngraph::op::v8::If>(op);
|
||||||
|
std::vector<std::shared_ptr<ngraph::Function>> bodies;
|
||||||
|
for (size_t i = 0; i < if_op->get_internal_subgraphs_size(); i++) {
|
||||||
|
auto if_body = if_op->get_function(i);
|
||||||
|
updateOPsStats(if_body, status);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
updateOPsStats(op->get_type_info(), status);
|
updateOPsStats(op->get_type_info(), status);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user