Skip to content

Commit

Permalink
[LPT] Move clean up transformations in one pass manager #3
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Jun 25, 2021
1 parent 7cb423b commit 6bc05f9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ bool FuseConvertTransformation::transform(TransformationContext& context, ngraph
ngraph::op::TemporaryReplaceOutputType(op->get_input_node_shared_ptr(1), element::f32).get());
NetworkHelper::setOutDataPrecisionForTypeRelaxed(newOp, op->get_output_element_type(0));
replace_node(op, newOp);
} else {
return false;
}

if (newOp != nullptr) {
ngraph::copy_runtime_info({ convert, op }, newOp);
newOp->set_friendly_name(op->get_friendly_name());
}
ngraph::copy_runtime_info({ convert, op }, newOp);
newOp->set_friendly_name(op->get_friendly_name());

register_new_node(newOp);
}

return true;
Expand Down

0 comments on commit 6bc05f9

Please sign in to comment.