Skip to content

Commit

Permalink
UT correct
Browse files Browse the repository at this point in the history
  • Loading branch information
b3602sss committed Jun 3, 2021
1 parent 2180158 commit 1b52f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/inference/api/analysis_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ bool AnalysisPredictor::CreateExecutor() {
return true;
}

static bool IsPrePareDataOptTargetOp(framework::OpDesc *op) {
static bool IsPrepareDataOptTargetOp(framework::OpDesc *op) {
// here is prepare data optimization related bad cases:
// let's assume an op behind conditional_block and if conditional_block
// chooses branch 1, the op need to call prepare data. else the op don't need
Expand Down Expand Up @@ -299,7 +299,7 @@ static void DisablePrepareDataOpt(
int blockID = op->GetBlockAttrId("sub_block");
DisablePrepareDataOpt(inference_program, blockID);
}
if (IsPrePareDataOptTargetOp(op)) {
if (IsPrepareDataOptTargetOp(op)) {
disable_opt = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def setUp(self):
}, {
"conv2d_0.tmp_0": [16, 6, 16, 16],
"data": [16, 6, 16, 16],
"depthwise_conv2d_0.tmp_0": [32, 6, 64, 64]
"depthwise_conv2d_0.tmp_0": [16, 6, 16, 16]
}, False)
self.fetch_list = [conv_out]

Expand Down

0 comments on commit 1b52f22

Please sign in to comment.