Skip to content

Commit

Permalink
miss if (#33513)
Browse files Browse the repository at this point in the history
  • Loading branch information
b3602sss authored Jun 11, 2021
1 parent ebe24e6 commit 6760d73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddle/fluid/inference/api/analysis_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ static void DisablePrepareDataOpt(
disable_opt || pre_disable_opt);
}
// disable prepare data if unfriendly op is found
disable_opt = IsPrepareDataOptTargetOp(op);
if (!disable_opt) {
disable_opt = IsPrepareDataOptTargetOp(op);
}
}
}

Expand Down

0 comments on commit 6760d73

Please sign in to comment.