Skip to content

Commit

Permalink
[cherry-pick]fix identity_scale_pass,test=develop (PaddlePaddle#5708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo-Ding authored Mar 15, 2021
1 parent 9709e4f commit f62ee55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lite/core/mir/elimination/identity_scale_eliminate_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Eliminator : public FuseBase {
// the previous op's output need updat
auto* pre_op = OpNode("preop")
->assert_is_not_op_type("conditional_block")
->assert_is_not_op_type("while")
->assert_is_not_op_type("scale");
// TODO(Superjomn) check has only one output
auto* x = VarNode("x")->assert_is_op_input("scale", "X");
Expand Down

0 comments on commit f62ee55

Please sign in to comment.