Skip to content

Commit 5083ec3

Browse files
author
Wojciech Uss
committed
do not enable MKL-DNN twice
After the MKL-DNN placement pass there is no need to enable MKL-DNN in operators via executor test=develop
1 parent a1d3db0 commit 5083ec3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

paddle/fluid/inference/api/analysis_predictor.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ bool AnalysisPredictor::Init(
7777
inference_program_ = program;
7878
}
7979

80-
if (config_._use_mkldnn) {
81-
executor_->EnableMKLDNN(*inference_program_);
82-
}
83-
8480
executor_->Prepare(scope_.get(), *inference_program_, 0,
8581
config_.use_feed_fetch_ops);
8682

0 commit comments

Comments
 (0)