Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
b3602sss committed Jun 3, 2021
1 parent 3902428 commit 2180158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/fluid/inference/api/analysis_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static bool IsPrePareDataOptTargetOp(framework::OpDesc *op) {
return false;
}

static void DisablePrePareDataOpt(
static void DisablePrepareDataOpt(
std::shared_ptr<framework::ProgramDesc> inference_program, int block) {
bool disable_opt = false;
for (auto *op : inference_program->Block(block).AllOps()) {
Expand All @@ -297,7 +297,7 @@ static void DisablePrePareDataOpt(
}
if (op->HasAttr("sub_block")) {
int blockID = op->GetBlockAttrId("sub_block");
DisablePrePareDataOpt(inference_program, blockID);
DisablePrepareDataOpt(inference_program, blockID);
}
if (IsPrePareDataOptTargetOp(op)) {
disable_opt = true;
Expand All @@ -306,7 +306,7 @@ static void DisablePrePareDataOpt(
}

bool AnalysisPredictor::PrepareExecutor() {
DisablePrePareDataOpt(inference_program_, 0);
DisablePrepareDataOpt(inference_program_, 0);

executor_->Prepare(sub_scope_, *inference_program_, 0,
config_.use_feed_fetch_ops_);
Expand Down

0 comments on commit 2180158

Please sign in to comment.