Added improvement for ZeroLikeFillZero optimization pass: The old algorithm...
Added improvement for ZeroLikeFillZero optimization pass: The old algorithm convert the PrimitivePy op (with 3 nodes) into a
new subtree with 9 nodes and after that a Renormalize pass is needed to simplified it back to a tensor. The new algorithm will
create the tensor while visiting in the pass, therefore only a single node is created and no Renormalize will be needed for this pass
(if other passes requires then Renormalize will still be called but no further infer is needed for the created tensor)
Signed-off-by: NHoai Linh Tran h00472437 <hoai.linh.tran@huawei.com>
Code review
Showing
想要评论请 注册 或 登录